From f7a43077fe4e139dd7e3f46f448e0951740ec148 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 2 Sep 2026 18:26:45 +0800 Subject: fix: qmlfmt IListView: animation --- services/Persistent.qml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'services/Persistent.qml') 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(); + } + } + } } -- cgit v1.2.3