diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-02 18:26:45 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-02 18:26:45 +0800 |
| commit | f7a43077fe4e139dd7e3f46f448e0951740ec148 (patch) | |
| tree | f6a68248fe42bd899e99049bab7fdb7e5d26ea60 /services/Persistent.qml | |
| parent | 2f7576faf493b4667b02dcb60ddbf3aa0a9f654b (diff) | |
fix: qmlfmt
IListView: animation
Diffstat (limited to 'services/Persistent.qml')
| -rw-r--r-- | services/Persistent.qml | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/services/Persistent.qml b/services/Persistent.qml index 3a911bf..9077ce9 100644 --- a/services/Persistent.qml +++ b/services/Persistent.qml @@ -4,24 +4,24 @@ import Quickshell.Io import qs.utils Scope { - id: root - property alias adapter: fileView.adapter - property alias fileView: fileView - property string fileDir: Directories.state - property string fileName: "states.json" - property string filePath: `${root.fileDir}/${root.fileName}` + id: root + property alias adapter: fileView.adapter + property alias fileView: fileView + property string fileDir: Directories.state + property string fileName: "states.json" + property string filePath: `${root.fileDir}/${root.fileName}` - FileView { - id: fileView - path: root.filePath - watchChanges: true - onFileChanged: reload() - onAdapterUpdated: writeAdapter() - onLoadFailed: error => { - console.log("Failed to load persistent states file:", error); - if (error == FileViewError.FileNotFound) { - writeAdapter(); - } - } - } + FileView { + id: fileView + path: root.filePath + watchChanges: true + onFileChanged: reload() + onAdapterUpdated: writeAdapter() + onLoadFailed: error => { + console.log("Failed to load persistent states file:", error); + if (error == FileViewError.FileNotFound) { + writeAdapter(); + } + } + } } |
