chore(format): format files that were unformatted
JS/TS / fmt & lint (pull_request) Successful in 12s
Rust / clippy & fmt (pull_request) Failing after 43s
C++ / fmt (pull_request) Successful in 5s
Python / fmt & lint (pull_request) Successful in 42s
Python / test & nuitka build (pull_request) Failing after 1m34s
C++ / build & lint (pull_request) Failing after 2m17s

This commit is contained in:
2026-10-30 22:57:48 +01:00
parent b279c5d664
commit 516ec9dd54
53 changed files with 100 additions and 187 deletions
+4 -3
View File
@@ -653,7 +653,8 @@ void WallpaperDb::queueMetadata(
existingCache.isEmpty() ? "" : ", existing blob");
m_queue.append(
MetadataJob{entry, entry->path(), isVideo, existingCache, existingPoster});
MetadataJob{
entry, entry->path(), isVideo, existingCache, existingPoster});
if (!m_queueTimer.isActive()) {
m_queueTimer.start();
@@ -771,8 +772,8 @@ void WallpaperDb::runMetadataJob(const MetadataJob& job) {
QByteArray poster = job.existingPoster;
if (poster.isEmpty()) {
poster =
job.isVideo ? videoPosterBytes(job.path, cacheSize) : cache;
poster = job.isVideo ? videoPosterBytes(job.path, cacheSize)
: cache;
}
result.cache = cache;
+2 -2
View File
@@ -110,8 +110,8 @@ class WallpaperDb : public QObject {
[[nodiscard]] static QString thumbnailUrl(const QString& path);
Q_INVOKABLE QVariantMap crop(const QString& path, const QString& screen)
const;
Q_INVOKABLE QVariantMap
crop(const QString& path, const QString& screen) const;
Q_INVOKABLE void setCrop(
const QString& path, const QString& screen, const QVariantMap& crop);
+2 -2
View File
@@ -50,7 +50,7 @@ QString VideoTranscoder::codecName(const QString& path) const {
if (!probe.waitForFinished(2000) || probe.exitCode() != 0) {
qWarning(transcodeLog) << "WallpaperService: ffprobe failed for" << path
<< "(exit" << probe.exitCode() << ")";
<< "(exit" << probe.exitCode() << ")";
return {};
}
@@ -120,7 +120,7 @@ void VideoTranscoder::start(const QString& src, const QString& dst) {
});
qWarning(transcodeLog) << "WallpaperService: transcoding" << src << "->"
<< dst;
<< dst;
proc->setProgram("nice");
proc->setArguments({
+3 -5
View File
@@ -72,11 +72,9 @@ void WallpaperObject::syncCrop(const QVariantMap& crop) {
const qreal y = crop.value("y").toDouble();
const qreal width = crop.contains("width") ? crop.value("width").toDouble()
: 1.0;
const qreal height = crop.contains("height")
? crop.value("height").toDouble()
: 1.0;
const qreal z =
crop.contains("zoom") ? crop.value("zoom").toDouble() : 1.0;
const qreal height =
crop.contains("height") ? crop.value("height").toDouble() : 1.0;
const qreal z = crop.contains("zoom") ? crop.value("zoom").toDouble() : 1.0;
const bool prev = m_pushEnabled;
m_pushEnabled = false;