some refactoring etc.

This commit is contained in:
zadam
2019-05-11 19:27:33 +02:00
parent be68391c37
commit 8a501521e8
5 changed files with 191 additions and 164 deletions

View File

@@ -531,7 +531,9 @@ async function reload() {
// make sure the reload won't trigger reactivation. This is important especially in cases where we wait for the reload
// to finish to then activate some other note. But since the activate() event is called asynchronously, it may be called
// (or finished calling) after we switched to a different note.
ignoreNextActivationNoteId = getActiveNode().data.noteId;
if (getActiveNode()) {
ignoreNextActivationNoteId = getActiveNode().data.noteId;
}
await getTree().reload(notes);
}