diff --git a/config/quickshell/.config/quickshell/Modules/Bar/Bar.qml b/config/quickshell/.config/quickshell/Modules/Bar/Bar.qml index 8b609ba..bbd4422 100644 --- a/config/quickshell/.config/quickshell/Modules/Bar/Bar.qml +++ b/config/quickshell/.config/quickshell/Modules/Bar/Bar.qml @@ -145,8 +145,7 @@ Variants { } Connections { - target: LyricsService - onShowLyricsBarChanged: { + function onShowLyricsBarChanged() { if (LyricsService.showLyricsBar) { LyricsService.registerComponent("LyricsBar"); SystemStatService.unregisterComponent("BarMonitors"); @@ -155,6 +154,8 @@ Variants { SystemStatService.registerComponent("BarMonitors"); } } + + target: LyricsService } Item { diff --git a/config/quickshell/.config/quickshell/Services/Init.qml b/config/quickshell/.config/quickshell/Services/Init.qml index bb6f647..8e25db9 100644 --- a/config/quickshell/.config/quickshell/Services/Init.qml +++ b/config/quickshell/.config/quickshell/Services/Init.qml @@ -8,7 +8,8 @@ pragma Singleton Singleton { id: root - property bool loaded: false + property bool dirsLoaded: false + property bool initialized: dirsLoaded && ImageCacheService.initialized && ShellState.isLoaded Component.onCompleted: { let mkdirs = ""; @@ -27,7 +28,7 @@ Singleton { running: false onExited: (code, status) => { if (code === 0) - root.loaded = true; + root.dirsLoaded = true; else Logger.e("Init", `Failed to create necessary directories: ${code} (${status})`); } diff --git a/config/quickshell/.config/quickshell/shell.qml b/config/quickshell/.config/quickshell/shell.qml index 7ee0304..6cd70d7 100644 --- a/config/quickshell/.config/quickshell/shell.qml +++ b/config/quickshell/.config/quickshell/shell.qml @@ -12,15 +12,18 @@ ShellRoot { Component.onCompleted: { ImageCacheService.init(); - SunsetService; } Loader { id: loader - active: Init.loaded && ImageCacheService.initialized && ShellState.isLoaded + active: Init.initialized sourceComponent: Item { + Component.onCompleted: { + SunsetService; + } + IPCService { id: ipcService }