summaryrefslogtreecommitdiff
path: root/widgets/Ref.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-28 22:29:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-28 22:29:46 +1000
commitc1872c2d77065a9bcfe2f7953436c561f17290a3 (patch)
treee0fbf38929fb029c762789910f69c1b753215b9e /widgets/Ref.qml
parentdashboard: loader panes (diff)
downloadcaelestia-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/Ref.qml')
-rw-r--r--widgets/Ref.qml9
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--
+}