Skip to content

Commit

Permalink
No longer detaching leaf in onunload
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmayer committed Jan 20, 2025
1 parent 96c492f commit 438fc69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 438fc69

Please sign in to comment.