mirror of
https://github.com/zadam/trilium.git
synced 2025-01-24 07:59:08 +08:00
don't open new tab after duplicating subtree
This commit is contained in:
parent
3d3142e20c
commit
564fea43a9
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ async function duplicateSubtree(noteId, parentNotePath) {
|
|||
|
||||
await ws.waitForMaxKnownEntityChangeId();
|
||||
|
||||
await appContext.tabManager.activateOrOpenNote(`${parentNotePath}/${note.noteId}`);
|
||||
const activeTabContext = appContext.tabManager.getActiveTabContext();
|
||||
activeTabContext.setNote(`${parentNotePath}/${note.noteId}`);
|
||||
|
||||
const origNote = await treeCache.getNote(noteId);
|
||||
toastService.showMessage(`Note "${origNote.title}" has been duplicated`);
|
||||
|
|
Loading…
Reference in a new issue