mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Merge remote-tracking branch 'origin/stable'
This commit is contained in:
commit
9889166afc
@ -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});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user