diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index 37b60667..916fc953 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -20,6 +20,7 @@ Searcher { property string previewPath property string actualCurrent property bool previewColourLock + property bool pendingPreviewClear function getCategoryFor(w: FileSystemEntry): string { let category = w.parentDir.slice(Paths.wallsdir.length + 1); @@ -47,7 +48,14 @@ Searcher { function stopPreview(): void { showPreview = false; - if (!previewColourLock) + if (previewColourLock) + pendingPreviewClear = true; + else + Colours.showPreview = false; + } + + onPreviewColourLockChanged: { + if (!previewColourLock && pendingPreviewClear) Colours.showPreview = false; }