1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 12:52:06 -04:00

fix(notepad): decode path URI when saving/creating a file (#1805)

This commit is contained in:
Jonas Bloch
2026-02-23 15:15:51 +01:00
committed by bbedward
parent da20681fc0
commit 98acafb4b8
2 changed files with 2 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ Item {
onFileSelected: path => {
root.fileDialogOpen = false;
const cleanPath = path.toString().replace(/^file:\/\//, '');
const cleanPath = decodeURI(path.toString().replace(/^file:\/\//, ''));
const fileName = cleanPath.split('/').pop();
const fileUrl = "file://" + cleanPath;