feat: add support for lazy loading in modules
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user