Hotfix: wallpaper was not set on startup.

This commit is contained in:
LemmyCook 2025-09-04 15:11:45 -04:00
parent 5f1f3dce4a
commit e3f50c0ce2
4 changed files with 10 additions and 11 deletions

View file

@ -137,6 +137,9 @@ Singleton {
// Kickoff Font service
FontService.init()
// Kickoff HooksService
HooksService.init()
Qt.callLater(function () {
validateMonitorConfigurations()
})

View file

@ -16,6 +16,13 @@ Singleton {
}
}
Connections {
target: WallpaperService
function onWallpaperChanged(screenName, path) {
executeWallpaperHook(path, screenName)
}
}
// Execute wallpaper change hook
function executeWallpaperHook(wallpaperPath, screenName) {
if (!Settings.data.hooks?.enabled) {

View file

@ -286,11 +286,6 @@ Singleton {
// Emit signal for this specific wallpaper change
root.wallpaperChanged(screenName, path)
// Execute wallpaper change hook after the change is complete
if (HooksService) {
HooksService.executeWallpaperHook(path, screenName)
}
// Restart the random wallpaper timer
if (randomWallpaperTimer.running) {
randomWallpaperTimer.restart()

View file

@ -107,12 +107,6 @@ ShellRoot {
// Ensure our location singleton is created as soon as possible so we start fetching weather asap
LocationService.init()
// Initialize UpdateService
UpdateService.init()
// Initialize HooksService
HooksService.init()
// Kickoff NightLight service
NightLightService.apply()
}