From 81ef5be35c2dc44706908c8a48844dd229b2be5f Mon Sep 17 00:00:00 2001 From: Mark Ayers Date: Thu, 13 Mar 2025 01:19:39 -0400 Subject: [PATCH] Add cleanup --- main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.ts b/main.ts index 04b0f0d..d0361ca 100644 --- a/main.ts +++ b/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;