Skip to content

Commit 81ef5be

Browse files
committed
Add cleanup
1 parent 00ab550 commit 81ef5be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ export default class AtomizerPlugin extends Plugin {
195195
this.statusBarItem.setText("Atomizer: ready");
196196
}
197197

198+
onunload() {
199+
// Clean up the status bar item
200+
this.statusBarItem.remove();
201+
}
202+
198203
async atomizeNote(view: MarkdownView) {
199204
if (!this.validateSettings()) return;
200205

0 commit comments

Comments
 (0)