mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
don't open new tab after duplicating subtree
This commit is contained in:
parent
3d3142e20c
commit
564fea43a9
@ -90,7 +90,8 @@ async function duplicateSubtree(noteId, parentNotePath) {
|
|||||||
|
|
||||||
await ws.waitForMaxKnownEntityChangeId();
|
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);
|
const origNote = await treeCache.getNote(noteId);
|
||||||
toastService.showMessage(`Note "${origNote.title}" has been duplicated`);
|
toastService.showMessage(`Note "${origNote.title}" has been duplicated`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user