Skip to content

Commit

Permalink
Remember file path on each tab
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jun 2, 2024
1 parent 324bec6 commit 03e1c9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/FileSystem.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import GUI from "./gui";

class FileSystem {

Expand All @@ -10,6 +11,7 @@ class FileSystem {

async pickSaveFile(suggestedName, description, extension) {
const fileHandle = await window.showSaveFilePicker({
id: GUI.active_tab,
suggestedName: suggestedName,
types: [{
description: description,
Expand All @@ -28,6 +30,7 @@ class FileSystem {

async pickOpenFile(description, extension) {
const fileHandle = await window.showOpenFilePicker({
id: GUI.active_tab,
multiple: false,
types: [{
description: description,
Expand Down

0 comments on commit 03e1c9f

Please sign in to comment.