From 8e0a9f635ea6ca57f2d79cbf84af64330f61e944 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 3 Jun 2024 00:15:23 +0200 Subject: [PATCH] Remember file path on each tab --- src/js/FileSystem.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/FileSystem.js b/src/js/FileSystem.js index 6f53ec1735..b937d3d18b 100644 --- a/src/js/FileSystem.js +++ b/src/js/FileSystem.js @@ -1,3 +1,5 @@ +import GUI from "./gui"; + class FileSystem { _createFile(fileHandle) { return { @@ -8,6 +10,7 @@ class FileSystem { async pickSaveFile(suggestedName, description, extension) { const fileHandle = await window.showSaveFilePicker({ + id: GUI.active_tab, suggestedName: suggestedName, types: [ { @@ -28,6 +31,7 @@ class FileSystem { async pickOpenFile(description, extension) { const fileHandle = await window.showOpenFilePicker({ + id: GUI.active_tab, multiple: false, types: [ {