mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
moved tab related stuff to tab manager from app context
This commit is contained in:
@@ -68,7 +68,7 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
refreshWithNote(note, notePath) {}
|
||||
|
||||
activeTabChangedListener() {
|
||||
this.tabContext = this.appContext.getActiveTabContext();
|
||||
this.tabContext = this.appContext.tabManager.getActiveTabContext();
|
||||
|
||||
this.activeTabChanged();
|
||||
}
|
||||
@@ -79,7 +79,7 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
|
||||
lazyLoadedListener() {
|
||||
if (!this.tabContext) { // has not been loaded yet
|
||||
this.tabContext = this.appContext.getActiveTabContext();
|
||||
this.tabContext = this.appContext.tabManager.getActiveTabContext();
|
||||
}
|
||||
|
||||
this.refresh();
|
||||
|
||||
Reference in New Issue
Block a user