Skip to content

Commit 03e1c9f

Browse files
committed
Remember file path on each tab
1 parent 324bec6 commit 03e1c9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/FileSystem.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import GUI from "./gui";
12

23
class FileSystem {
34

@@ -10,6 +11,7 @@ class FileSystem {
1011

1112
async pickSaveFile(suggestedName, description, extension) {
1213
const fileHandle = await window.showSaveFilePicker({
14+
id: GUI.active_tab,
1315
suggestedName: suggestedName,
1416
types: [{
1517
description: description,
@@ -28,6 +30,7 @@ class FileSystem {
2830

2931
async pickOpenFile(description, extension) {
3032
const fileHandle = await window.showOpenFilePicker({
33+
id: GUI.active_tab,
3134
multiple: false,
3235
types: [{
3336
description: description,

0 commit comments

Comments
 (0)