summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 19:19:48 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 19:19:48 +1000
commitc650f4392d12c9ac71996e393c0a32169a27e4cb (patch)
treeaa2f2c5067692e7197e824c79e8c6bc0c4da06dc
parentthumbnailer: better caching (diff)
downloadcaelestia-shell-c650f4392d12c9ac71996e393c0a32169a27e4cb.tar.gz
caelestia-shell-c650f4392d12c9ac71996e393c0a32169a27e4cb.tar.bz2
caelestia-shell-c650f4392d12c9ac71996e393c0a32169a27e4cb.zip
launcher: focus actual current wall
Also thumbnailer kill process before starting new proc
-rw-r--r--modules/launcher/WallpaperList.qml4
-rw-r--r--services/Thumbnailer.qml2
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml
index 430964e..b3a0fd7 100644
--- a/modules/launcher/WallpaperList.qml
+++ b/modules/launcher/WallpaperList.qml
@@ -20,10 +20,10 @@ PathView {
list.length -= 1; // Always show odd number
return list;
}
- onValuesChanged: root.currentIndex = search ? 0 : values.findIndex(w => w.path === Wallpapers.current)
+ onValuesChanged: root.currentIndex = search ? 0 : values.findIndex(w => w.path === Wallpapers.actualCurrent)
}
- Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.current)
+ Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.actualCurrent)
Component.onDestruction: Wallpapers.stopPreview()
onCurrentItemChanged: {
diff --git a/services/Thumbnailer.qml b/services/Thumbnailer.qml
index 3bdcaf0..3b22ada 100644
--- a/services/Thumbnailer.qml
+++ b/services/Thumbnailer.qml
@@ -35,6 +35,7 @@ Singleton {
onRead: data => {
const sha = data.split(" ")[0];
obj.path = `${root.thumbDir}/${sha}@${obj.width}x${obj.height}-exact.png`;
+ obj.thumbProc.signal(9);
obj.thumbProc.running = true;
}
}
@@ -62,6 +63,7 @@ end`]
}
function reload(): void {
+ shaProc.signal(9);
shaProc.running = true;
}
}