No need to check monitors all the times
This commit is contained in:
parent
170502259e
commit
faafdc0644
1 changed files with 11 additions and 8 deletions
|
|
@ -82,16 +82,19 @@ Singleton {
|
||||||
reload()
|
reload()
|
||||||
}
|
}
|
||||||
onLoaded: function () {
|
onLoaded: function () {
|
||||||
Logger.log("Settings", "OnLoaded")
|
|
||||||
Qt.callLater(function () {
|
Qt.callLater(function () {
|
||||||
// Only set wallpaper on initial load, not on reloads
|
if (isInitialLoad) {
|
||||||
if (isInitialLoad && adapter.wallpaper.current !== "") {
|
Logger.log("Settings", "OnLoaded")
|
||||||
Logger.log("Settings", "Set current wallpaper", adapter.wallpaper.current)
|
// Only set wallpaper on initial load, not on reloads
|
||||||
WallpaperService.setCurrentWallpaper(adapter.wallpaper.current, true)
|
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
|
// Validate monitor configurations, only once
|
||||||
validateMonitorConfigurations()
|
// if none of the configured monitors exist, clear the lists
|
||||||
|
validateMonitorConfigurations()
|
||||||
|
}
|
||||||
|
|
||||||
isInitialLoad = false
|
isInitialLoad = false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue