mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fix lazy initialization of the sidebar
This commit is contained in:
@@ -28,7 +28,7 @@ const TPL = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
export default class SidepaneToggles extends BasicWidget {
|
||||
export default class SidePaneToggles extends BasicWidget {
|
||||
constructor(appContext) {
|
||||
super(appContext);
|
||||
|
||||
@@ -78,6 +78,10 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
lazyLoadedListener() {
|
||||
if (!this.tabContext) { // has not been loaded yet
|
||||
this.tabContext = this.appContext.getActiveTabContext();
|
||||
}
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user