removed dependency on note tree widget from app context

This commit is contained in:
zadam
2020-02-07 20:56:49 +01:00
parent 62e1284790
commit 6d912c4897
9 changed files with 32 additions and 54 deletions

View File

@@ -35,8 +35,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
window.glob.cutIntoNote = () => this.cutIntoNoteListener();
this.appContext.noteTreeWidget = this;
this.tree = null;
}

View File

@@ -107,6 +107,7 @@ export default class SearchBoxWidget extends BasicWidget {
return;
}
// FIXME
let activeNode = appContext.getMainNoteTree().getActiveNode();
const parentNote = await treeCache.getNote(activeNode.data.noteId);