aboutsummaryrefslogtreecommitdiffstats
path: root/appearance/Wallpapers.qml
diff options
context:
space:
mode:
Diffstat (limited to 'appearance/Wallpapers.qml')
-rw-r--r--appearance/Wallpapers.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/appearance/Wallpapers.qml b/appearance/Wallpapers.qml
index 0d61f90..0317ea5 100644
--- a/appearance/Wallpapers.qml
+++ b/appearance/Wallpapers.qml
@@ -55,7 +55,14 @@ Singleton {
// Sorted by most recent first: the wallpaper wanted now is usually one
// added recently. -maxdepth keeps a stray git checkout from being walked.
+ function refresh() {
+ scanning = true;
+ scanProc.running = false;
+ scanProc.running = true;
+ }
+
Process {
+ id: scanProc
running: true
command: ["sh", "-c",
`find ${JSON.stringify(root.dir)} -maxdepth 2 -type f ` +