Skip to content

Commit

Permalink
reset export destination when new file is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
njbrown committed Jan 12, 2022
1 parent b5f10f7 commit 43d8f58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,9 @@ export default class App extends Vue implements IApp {
this.resolution = 1024;
this.randomSeed = 32;
this.exportPattern = "${project}_${name}";
this.exportDestination = null;
this.setWindowTitle(this.project.name);
UndoStack.current.clear();
};
Expand Down Expand Up @@ -1072,6 +1075,8 @@ export default class App extends Vue implements IApp {
this.resolution = 1024;
this.randomSeed = 32;
this.exportPattern = "${project}_${name}";
this.exportDestination = null;
const exportData = project.data["export"];
if (exportData) {
this.exportPattern = exportData["filePattern"] || "${project}_${name}";
Expand Down Expand Up @@ -1317,6 +1322,9 @@ export default class App extends Vue implements IApp {
this.library = unobserve(this.editor.library);
this.setWindowTitle(project.name);
this.exportPattern = "${project}_${name}";
this.exportDestination = null;
UndoStack.current.clear();
};
Expand Down

0 comments on commit 43d8f58

Please sign in to comment.