fix selecting note title after creation, closes #997

This commit is contained in:
zadam
2020-05-05 21:42:18 +02:00
parent 70e343f2fc
commit 3b268cc8eb
2 changed files with 7 additions and 15 deletions

View File

@@ -48,8 +48,12 @@ async function createNote(parentNoteId, options = {}) {
}
if (options.activate) {
await ws.waitForMaxKnownSyncId();
const activeTabContext = appContext.tabManager.getActiveTabContext();
activeTabContext.setNote(note.noteId);
await activeTabContext.setNote(note.noteId);
appContext.triggerCommand('focusAndSelectTitle');
}
return {note, branch};