mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
removed dependency on note tree widget from app context
This commit is contained in:
@@ -35,8 +35,6 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
|
||||
window.glob.cutIntoNote = () => this.cutIntoNoteListener();
|
||||
|
||||
this.appContext.noteTreeWidget = this;
|
||||
|
||||
this.tree = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user