mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
global menu ref
This commit is contained in:
@@ -799,6 +799,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
await node.setExpanded(isExpanded, {noEvents: true, noAnimation: true});
|
||||
}
|
||||
});
|
||||
|
||||
const activeNode = await this.getNodeFromPath(appContext.tabManager.getActiveContextNotePath());
|
||||
|
||||
if (activeNode) {
|
||||
activeNode.setActive({noEvents: true, noFocus: false});
|
||||
}
|
||||
}
|
||||
|
||||
async expandTree(node = null) {
|
||||
|
||||
Reference in New Issue
Block a user