mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	don't open new tab after duplicating subtree
This commit is contained in:
		| @@ -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`); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user