Skip to content

Commit

Permalink
Avoid exporting all trajectories on every autosave.
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Jan 9, 2024
1 parent f55e0f0 commit 86a2eb2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/document/DocumentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class DocumentManager {
this.model.uiState.setSaveFileName(saveName);
this.model.uiState.setSaveFileDir(saveDir);
this.model.uiState.setIsGradleProject(adjacent_gradle);
});
}).then(()=>this.exportAllTrajectories());
}
}

Expand Down Expand Up @@ -486,9 +486,8 @@ export class DocumentManager {
if (newIsGradleProject !== undefined) {
if (newIsGradleProject !== prevIsGradleProject) {
this.model.uiState.setIsGradleProject(newIsGradleProject);
await this.exportAllTrajectories();
}

await this.exportAllTrajectories();
}
}

Expand Down

0 comments on commit 86a2eb2

Please sign in to comment.