Skip to content

Commit

Permalink
fix: 🐛 await saveViewState!
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Oct 26, 2021
1 parent 0bfe141 commit 3e2eab0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions main.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ export default class ACPlugin extends Plugin {
await this.saveSettings();
}

onunload() {
this.saveViewState();
async onunload() {
await this.saveViewState();
this.app.workspace.detachLeavesOfType(VIEW_TYPE_AC);
}

Expand Down

0 comments on commit 3e2eab0

Please sign in to comment.