mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
when creating new note into inbox use current hoisted note in new tab as well
This commit is contained in:
parent
98f02c3c9a
commit
9fd26a9b9f
@ -74,7 +74,11 @@ export default class Entrypoints extends Component {
|
||||
|
||||
await ws.waitForMaxKnownEntityChangeId();
|
||||
|
||||
await appContext.tabManager.openTabWithNote(note.noteId, true);
|
||||
const hoistedNoteId = appContext.tabManager.getActiveTabContext()
|
||||
? appContext.tabManager.getActiveTabContext().hoistedNoteId
|
||||
: 'root';
|
||||
|
||||
await appContext.tabManager.openTabWithNote(note.noteId, true, null, hoistedNoteId);
|
||||
|
||||
appContext.triggerEvent('focusAndSelectTitle');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user