chore(format): format files that were unformatted
C++ / fmt (pull_request) Successful in 13s
C++ / build & lint (pull_request) Canceled after 14s
JS/TS / fmt & lint (pull_request) Canceled after 7s
Python / fmt & lint (pull_request) Canceled after 12s
Python / test & nuitka build (pull_request) Canceled after 8s
Rust / clippy & fmt (pull_request) Canceled after 0s
C++ / fmt (pull_request) Successful in 13s
C++ / build & lint (pull_request) Canceled after 14s
JS/TS / fmt & lint (pull_request) Canceled after 7s
Python / fmt & lint (pull_request) Canceled after 12s
Python / test & nuitka build (pull_request) Canceled after 8s
Rust / clippy & fmt (pull_request) Canceled after 0s
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user