Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam 2020-11-24 23:19:16 +01:00
commit 9889166afc
2 changed files with 2 additions and 9 deletions

View File

@ -130,7 +130,7 @@ function linkContextMenu(e) {
appContext.tabManager.openTabWithNote(notePath); appContext.tabManager.openTabWithNote(notePath);
} }
else if (command === 'openNoteInNewWindow') { else if (command === 'openNoteInNewWindow') {
appContext.openInNewWindow(notePath); appContext.triggerCommand('openInWindow', {notePath});
} }
} }
}); });

View File

@ -109,14 +109,7 @@ class TreeContextMenu {
const notePath = treeService.getNotePath(this.node); const notePath = treeService.getNotePath(this.node);
if (command === 'openInTab') { if (command === 'openInTab') {
appContext.tabManager.openTabWithNote(notePath);
const start = Date.now();
await this.node.load(true);
console.log("Reload took", Date.now() - start, "ms");
// appContext.tabManager.openTabWithNote(notePath);
} }
else if (command === "insertNoteAfter") { else if (command === "insertNoteAfter") {
const parentNoteId = this.node.data.parentNoteId; const parentNoteId = this.node.data.parentNoteId;