1
1
Fork 0
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:
zadam 2021-04-09 23:40:15 +02:00
parent 3d3142e20c
commit 564fea43a9

View file

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