Skip to content

Commit 8e0a9f6

Browse files
committed
Remember file path on each tab
1 parent 7614ad3 commit 8e0a9f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/FileSystem.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import GUI from "./gui";
2+
13
class FileSystem {
24
_createFile(fileHandle) {
35
return {
@@ -8,6 +10,7 @@ class FileSystem {
810

911
async pickSaveFile(suggestedName, description, extension) {
1012
const fileHandle = await window.showSaveFilePicker({
13+
id: GUI.active_tab,
1114
suggestedName: suggestedName,
1215
types: [
1316
{
@@ -28,6 +31,7 @@ class FileSystem {
2831

2932
async pickOpenFile(description, extension) {
3033
const fileHandle = await window.showOpenFilePicker({
34+
id: GUI.active_tab,
3135
multiple: false,
3236
types: [
3337
{

0 commit comments

Comments
 (0)