clean up
This commit is contained in:
parent
36b22b46ce
commit
52f4948275
2 changed files with 1 additions and 30 deletions
|
|
@ -1,29 +0,0 @@
|
|||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
property alias s: stateAdapter
|
||||
property alias v: state
|
||||
FileView {
|
||||
id: state
|
||||
path: Qt.resolvedUrl(Quickshell.shellDir + "/settings/state.json")
|
||||
watchChanges: true
|
||||
onLoadFailed: {
|
||||
writeAdapter()
|
||||
}
|
||||
onAdapterUpdated: writeAdapter()
|
||||
onFileChanged: reload()
|
||||
adapter: JsonAdapter {
|
||||
id: stateAdapter
|
||||
property bool themeSwitcherVisible: false
|
||||
}
|
||||
|
||||
}
|
||||
Component.onCompleted: console.log("say gex")
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue