focus and activate should work together

This commit is contained in:
zadam 2020-01-02 19:07:50 +01:00
parent 3b98428c8c
commit ac75fd2ca3

View file

@ -191,9 +191,7 @@ async function activateNote(notePath, noteLoadedListener) {
noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener);
}
// we use noFocus because when we reload the tree because of background changes
// we don't want the reload event to steal focus from whatever was focused before
await node.setActive(true, { noFocus: true });
await node.setActive(true);
clearSelectedNodes();