From c1872c2d77065a9bcfe2f7953436c561f17290a3 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 28 Jun 2025 22:29:46 +1000 Subject: dashboard: optimise cava Use refs to prevent loading at all times --- widgets/Ref.qml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 widgets/Ref.qml (limited to 'widgets/Ref.qml') 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-- +} -- cgit v1.2.3-freya