forked from Shinonome/dots-hyprland
replace manual file:// replacement with util functions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user