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

This commit is contained in:
Jonas Bloch authored and bbedward committed 2026-02-23 10:20:48 -05:00
1 parent da20681fc0
commit 98acafb4b8
2 files changed
+2 -2

No files matched your search

+1 -1
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;
@@ -358,7 +358,7 @@ Singleton {
}
function createEmptyFile(path, callback) {
var cleanPath = path.toString()
var cleanPath = decodeURI(path.toString())
if (!cleanPath.startsWith("/")) {
cleanPath = baseDir + "/" + cleanPath