diff options
Diffstat (limited to 'services')
| -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 |