Hotfix: wallpaper was not set on startup.
This commit is contained in:
parent
5f1f3dce4a
commit
e3f50c0ce2
4 changed files with 10 additions and 11 deletions
|
|
@ -137,6 +137,9 @@ Singleton {
|
||||||
// Kickoff Font service
|
// Kickoff Font service
|
||||||
FontService.init()
|
FontService.init()
|
||||||
|
|
||||||
|
// Kickoff HooksService
|
||||||
|
HooksService.init()
|
||||||
|
|
||||||
Qt.callLater(function () {
|
Qt.callLater(function () {
|
||||||
validateMonitorConfigurations()
|
validateMonitorConfigurations()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,13 @@ Singleton {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: WallpaperService
|
||||||
|
function onWallpaperChanged(screenName, path) {
|
||||||
|
executeWallpaperHook(path, screenName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Execute wallpaper change hook
|
// Execute wallpaper change hook
|
||||||
function executeWallpaperHook(wallpaperPath, screenName) {
|
function executeWallpaperHook(wallpaperPath, screenName) {
|
||||||
if (!Settings.data.hooks?.enabled) {
|
if (!Settings.data.hooks?.enabled) {
|
||||||
|
|
|
||||||
|
|
@ -286,11 +286,6 @@ Singleton {
|
||||||
// Emit signal for this specific wallpaper change
|
// Emit signal for this specific wallpaper change
|
||||||
root.wallpaperChanged(screenName, path)
|
root.wallpaperChanged(screenName, path)
|
||||||
|
|
||||||
// Execute wallpaper change hook after the change is complete
|
|
||||||
if (HooksService) {
|
|
||||||
HooksService.executeWallpaperHook(path, screenName)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Restart the random wallpaper timer
|
// Restart the random wallpaper timer
|
||||||
if (randomWallpaperTimer.running) {
|
if (randomWallpaperTimer.running) {
|
||||||
randomWallpaperTimer.restart()
|
randomWallpaperTimer.restart()
|
||||||
|
|
|
||||||
|
|
@ -107,12 +107,6 @@ ShellRoot {
|
||||||
// Ensure our location singleton is created as soon as possible so we start fetching weather asap
|
// Ensure our location singleton is created as soon as possible so we start fetching weather asap
|
||||||
LocationService.init()
|
LocationService.init()
|
||||||
|
|
||||||
// Initialize UpdateService
|
|
||||||
UpdateService.init()
|
|
||||||
|
|
||||||
// Initialize HooksService
|
|
||||||
HooksService.init()
|
|
||||||
|
|
||||||
// Kickoff NightLight service
|
// Kickoff NightLight service
|
||||||
NightLightService.apply()
|
NightLightService.apply()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue