From f67999945327db3d6eebaef92c11adb3f1563bbf Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 29 Aug 2025 14:44:20 -0400 Subject: [PATCH] Wallpaper: fixed random wallpaper --- Services/WallpaperService.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Services/WallpaperService.qml b/Services/WallpaperService.qml index 1997197..0d4d371 100644 --- a/Services/WallpaperService.qml +++ b/Services/WallpaperService.qml @@ -152,7 +152,7 @@ Singleton { Logger.log("Wallpaper", "setRandomWallpaper") for (var i = 0; i < Quickshell.screens.length; i++) { var screenName = Quickshell.screens[i].name - var wallpaperList = getWallpaperList(screenName) + var wallpaperList = getWallpapersList(screenName) if (wallpaperList.length > 0) { var randomIndex = Math.floor(Math.random() * wallpaperList.length) @@ -234,15 +234,13 @@ Singleton { var lists = root.wallpaperLists lists[screenName] = [] root.wallpaperLists = lists - } - else if (status === FolderListModel.Loading) { + } else if (status === FolderListModel.Loading) { // Flush the list var lists = root.wallpaperLists lists[screenName] = [] root.wallpaperLists = lists scanningCount++ - } else if (status === FolderListModel.Ready) { var files = [] for (var i = 0; i < count; i++) {