don't detach existing nodes when opening from the sidebar

Closes #58
This commit is contained in:
Ell 2022-09-17 17:42:34 +02:00
parent 2e5cbe42f5
commit 33f3407afe
3 changed files with 1 additions and 3 deletions

View file

@ -82,7 +82,6 @@ export default class CustomFramesPlugin extends Plugin {
private async openLeaf(name: string, center: boolean, split: boolean): Promise<void> {
if (center) {
this.app.workspace.detachLeavesOfType(name);
let leaf = this.app.workspace.getLeaf(split);
await leaf.setViewState({ type: name, active: true });
} else {

File diff suppressed because one or more lines are too long

0
test-vault/note.md Normal file
View file