replace manual file:// replacement with util functions

This commit is contained in:
end-4
2025-12-14 10:38:12 +01:00
parent b966e2d539
commit 5f51b97b6d
@@ -45,7 +45,7 @@ Singleton {
action: actionName, action: actionName,
execute: ((path) => (args) => { execute: ((path) => (args) => {
Quickshell.execDetached([path, ...(args ? args.split(" ") : [])]); Quickshell.execDetached([path, ...(args ? args.split(" ") : [])]);
})(filePath.toString().replace("file://", "")) })(FileUtils.trimFileProtocol(filePath.toString()))
}); });
} }
} }
@@ -54,7 +54,7 @@ Singleton {
FolderListModel { FolderListModel {
id: userActionsFolder id: userActionsFolder
folder: `file://${Directories.userActions}` folder: Qt.resolvedUrl(Directories.userActions)
showDirs: false showDirs: false
showHidden: false showHidden: false
sortField: FolderListModel.Name sortField: FolderListModel.Name