diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-28 22:29:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-28 22:29:46 +1000 |
| commit | c1872c2d77065a9bcfe2f7953436c561f17290a3 (patch) | |
| tree | e0fbf38929fb029c762789910f69c1b753215b9e /widgets | |
| parent | dashboard: loader panes (diff) | |
| download | caelestia-shell-c1872c2d77065a9bcfe2f7953436c561f17290a3.tar.gz caelestia-shell-c1872c2d77065a9bcfe2f7953436c561f17290a3.tar.bz2 caelestia-shell-c1872c2d77065a9bcfe2f7953436c561f17290a3.zip | |
dashboard: optimise cava
Use refs to prevent loading at all times
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/Ref.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/Ref.qml b/widgets/Ref.qml new file mode 100644 index 0000000..679f52f --- /dev/null +++ b/widgets/Ref.qml @@ -0,0 +1,9 @@ +import Quickshell +import QtQuick + +QtObject { + required property Singleton service + + Component.onCompleted: service.refCount++ + Component.onDestruction: service.refCount-- +} |