copy pasta from caelestia
This commit is contained in:
parent
0f71e6ca45
commit
334c48e9b4
2 changed files with 229 additions and 0 deletions
9
utils/Ref.qml
Normal file
9
utils/Ref.qml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
QtObject {
|
||||
required property Singleton service
|
||||
|
||||
Component.onCompleted: service.refCount++
|
||||
Component.onDestruction: service.refCount--
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue