diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-19 20:18:04 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-19 20:18:04 +1000 |
| commit | e4d2226dd0c84fa6e201f1c424cf5c3e0df24c0f (patch) | |
| tree | f8190f776be6768f0d7e49e9e5d44659be33b566 /services/Wallpapers.qml | |
| parent | internal: make wallpaper dir configurable (diff) | |
| download | caelestia-shell-e4d2226dd0c84fa6e201f1c424cf5c3e0df24c0f.tar.gz caelestia-shell-e4d2226dd0c84fa6e201f1c424cf5c3e0df24c0f.tar.bz2 caelestia-shell-e4d2226dd0c84fa6e201f1c424cf5c3e0df24c0f.zip | |
launcher: better empty text
Also reload wallpapers when path changes
Diffstat (limited to 'services/Wallpapers.qml')
| -rw-r--r-- | services/Wallpapers.qml | 10 |
1 files changed, 10 insertions, 0 deletions
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 |