mirror of
https://github.com/binxly/Atomizer.git
synced 2026-07-22 05:31:35 +00:00
Add cleanup
This commit is contained in:
parent
00ab550777
commit
81ef5be35c
1 changed files with 5 additions and 0 deletions
5
main.ts
5
main.ts
|
|
@ -195,6 +195,11 @@ export default class AtomizerPlugin extends Plugin {
|
|||
this.statusBarItem.setText("Atomizer: ready");
|
||||
}
|
||||
|
||||
onunload() {
|
||||
// Clean up the status bar item
|
||||
this.statusBarItem.remove();
|
||||
}
|
||||
|
||||
async atomizeNote(view: MarkdownView) {
|
||||
if (!this.validateSettings()) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue