clear note selection anytime a new note is activated

This commit is contained in:
zadam
2021-04-21 20:38:07 +02:00
parent a53a65be1f
commit dc6a530d8c
2 changed files with 2 additions and 3 deletions

View File

@@ -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();