From e4d2226dd0c84fa6e201f1c424cf5c3e0df24c0f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 19 Jun 2025 20:18:04 +1000 Subject: launcher: better empty text Also reload wallpapers when path changes --- services/Wallpapers.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'services/Wallpapers.qml') diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index 1470648..15424b7 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -92,6 +92,8 @@ Singleton { } Process { + id: getWallsProc + running: true command: ["find", Config.paths.wallpaperDir, "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] stdout: StdioCollector { @@ -99,6 +101,14 @@ Singleton { } } + Connections { + target: Config.paths + + function onWallpaperDirChanged(): void { + getWallsProc.running = true; + } + } + Variants { id: wallpapers -- cgit v1.2.3-freya