mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
collapse command will collapse the whole tree, including the current active note path, fixes #3664
This commit is contained in:
parent
83d8908ee8
commit
e24d5a6f83
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user