mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
clear note selection anytime a new note is activated
This commit is contained in:
@@ -382,8 +382,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
}
|
||||
else {
|
||||
node.setActive();
|
||||
|
||||
this.clearSelectedNodes();
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -393,6 +391,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
// click event won't propagate so let's close context menu manually
|
||||
contextMenu.hide();
|
||||
|
||||
this.clearSelectedNodes();
|
||||
|
||||
const notePath = treeService.getNotePath(data.node);
|
||||
|
||||
const activeTabContext = appContext.tabManager.getActiveTabContext();
|
||||
|
||||
Reference in New Issue
Block a user