collapse command will collapse the whole tree, including the current active note path, fixes #3664

This commit is contained in:
zadam 2023-04-19 21:24:51 +02:00
parent 83d8908ee8
commit e24d5a6f83

View File

@ -833,11 +833,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
await this.filterHoistedBranch(); await this.filterHoistedBranch();
const activeNode = await this.getNodeFromPath(appContext.tabManager.getActiveContextNotePath()); // don't activate the active note, see discussion in https://github.com/zadam/trilium/issues/3664
if (activeNode) {
activeNode.setActive({noEvents: true, noFocus: false});
}
} }
async expandTree(node = null) { async expandTree(node = null) {