Optimizations memory/cpu

- Only load bar widgets once the settings are done loading, and the
widget is actually in use.
- Only load bar on screens that request it, instead of hiding it.
This commit is contained in:
LemmyCook 2025-08-25 21:18:49 -04:00
parent 38efdc8f36
commit 9fb4aff635
4 changed files with 86 additions and 83 deletions

View file

@ -13,7 +13,7 @@ Singleton {
property var items: [] // [{id, preview, mime, isImage}]
property bool loading: false
// Active only when feature is enabled and settings have finished initial load
property bool active: Settings.data.appLauncher.enableClipboardHistory && !Settings.isInitialLoad
property bool active: Settings.data.appLauncher.enableClipboardHistory && Settings.isLoaded
// Optional automatic watchers to feed cliphist DB
property bool autoWatch: true