From e24d5a6f838304cd88cc22185fc616350babfdb0 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 19 Apr 2023 21:24:51 +0200 Subject: [PATCH] collapse command will collapse the whole tree, including the current active note path, fixes #3664 --- src/public/app/widgets/note_tree.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index 43d2ee8f8..4ae85454b 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -833,11 +833,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { await this.filterHoistedBranch(); - const activeNode = await this.getNodeFromPath(appContext.tabManager.getActiveContextNotePath()); - - if (activeNode) { - activeNode.setActive({noEvents: true, noFocus: false}); - } + // don't activate the active note, see discussion in https://github.com/zadam/trilium/issues/3664 } async expandTree(node = null) {