fix switching notes in the passive tabs

This commit is contained in:
zadam
2020-03-15 18:57:03 +01:00
parent fcf72262bd
commit 6de0f75931
2 changed files with 3 additions and 2 deletions

View File

@@ -418,7 +418,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
await this.tree.reload(notes);
}
collapseTreeCommand() { this.collapseTree(); }
// must be event since it's triggered from outside the tree
collapseTreeEvent() { this.collapseTree(); }
isEnabled() {
return !!this.tabContext;