mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix switching notes in the passive tabs
This commit is contained in:
parent
fcf72262bd
commit
6de0f75931
@ -418,7 +418,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
|||||||
await this.tree.reload(notes);
|
await this.tree.reload(notes);
|
||||||
}
|
}
|
||||||
|
|
||||||
collapseTreeCommand() { this.collapseTree(); }
|
// must be event since it's triggered from outside the tree
|
||||||
|
collapseTreeEvent() { this.collapseTree(); }
|
||||||
|
|
||||||
isEnabled() {
|
isEnabled() {
|
||||||
return !!this.tabContext;
|
return !!this.tabContext;
|
||||||
|
@ -48,7 +48,7 @@ export default class TabAwareWidget extends BasicWidget {
|
|||||||
|
|
||||||
async tabNoteSwitchedEvent({tabContext, notePath}) {
|
async tabNoteSwitchedEvent({tabContext, notePath}) {
|
||||||
// if notePath does not match then the tabContext has been switched to another note in the mean time
|
// if notePath does not match then the tabContext has been switched to another note in the mean time
|
||||||
if (tabContext.isActive() && tabContext.notePath === notePath) {
|
if (tabContext.notePath === notePath) {
|
||||||
await this.noteSwitched();
|
await this.noteSwitched();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user