feat: add support for lazy loading in modules

This commit is contained in:
Hannes
2026-08-23 22:14:36 +02:00
parent 426b96a27e
commit 4b4159371d
4 changed files with 13 additions and 8 deletions
+3 -3
View File
@@ -16,10 +16,10 @@ Item {
}
}
Loader {
LazyLoader {
id: wallpaperLoader
active: false
sourceComponent: WallpaperPicker { id: wPicker }
WallpaperPicker { id: wPicker }
}
GlobalShortcut {
@@ -30,7 +30,7 @@ Item {
// generateThumbs.startDetached()
generateThumbs.running = true
console.log("Pressed Meta+Shift+W (Hyprland global shortcut)")
wallpaperLoader.active = !wallpaperLoader.active
wallpaperLoader.activeAsync = !wallpaperLoader.active
}
}