From 438fc69e360294919d7c7e8cf503316567d054a2 Mon Sep 17 00:00:00 2001 From: Dominik Mayer Date: Mon, 20 Jan 2025 13:37:20 +0700 Subject: [PATCH] No longer detaching leaf in onunload --- main.ts | 6 ------ manifest.json | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/main.ts b/main.ts index 0687cad..4859c1e 100644 --- a/main.ts +++ b/main.ts @@ -231,12 +231,6 @@ export default class IDSidePanelPlugin extends Plugin { ); } - async onunload() { - // Detach the side panel and clean up - this.app.workspace.detachLeavesOfType(VIEW_TYPE_ID_PANEL); - this.activePanelView = null; - } - async activateView() { // Get the right leaf or create one if it doesn't exist let leaf = this.app.workspace.getRightLeaf(false); diff --git a/manifest.json b/manifest.json index a6a1ba5..0926e1b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "note-id", "name": "Note ID", - "version": "1.0.0", + "version": "1.0.1", "minAppVersion": "0.15.0", "description": "Displays notes by their ID, enabling structured sequences in a Zettelkasten (\"Folgezettel\").", "author": "Dominik Mayer", diff --git a/package.json b/package.json index 7a91ddd..70ae823 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-note-id", - "version": "1.0.0", + "version": "1.0.1", "description": "Displays notes by their ID, enabling structured sequences in a Zettelkasten (\"Folgezettel\").", "main": "main.js", "scripts": {