From faafdc064414c94e045fe4991bba0972d0091022 Mon Sep 17 00:00:00 2001 From: quadbyte Date: Tue, 19 Aug 2025 19:32:05 -0400 Subject: [PATCH] No need to check monitors all the times --- Commons/Settings.qml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Commons/Settings.qml b/Commons/Settings.qml index bc5d6c4..6fb29dd 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -82,16 +82,19 @@ Singleton { reload() } onLoaded: function () { - Logger.log("Settings", "OnLoaded") Qt.callLater(function () { - // Only set wallpaper on initial load, not on reloads - if (isInitialLoad && adapter.wallpaper.current !== "") { - Logger.log("Settings", "Set current wallpaper", adapter.wallpaper.current) - WallpaperService.setCurrentWallpaper(adapter.wallpaper.current, true) - } + if (isInitialLoad) { + Logger.log("Settings", "OnLoaded") + // Only set wallpaper on initial load, not on reloads + if (adapter.wallpaper.current !== "") { + Logger.log("Settings", "Set current wallpaper", adapter.wallpaper.current) + WallpaperService.setCurrentWallpaper(adapter.wallpaper.current, true) + } - // Validate monitor configurations - if none of the configured monitors exist, clear the lists - validateMonitorConfigurations() + // Validate monitor configurations, only once + // if none of the configured monitors exist, clear the lists + validateMonitorConfigurations() + } isInitialLoad = false })