This commit is contained in:
lucy 2026-09-11 00:53:15 +02:00
commit 52f4948275
2 changed files with 1 additions and 30 deletions

View file

@ -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")
}