This commit is contained in:
zadam
2020-02-28 00:31:12 +01:00
parent 2af37640d8
commit cb35284d37
4 changed files with 20 additions and 7 deletions

View File

@@ -79,10 +79,12 @@ export default class TabAwareWidget extends BasicWidget {
}
// when note is both switched and activated, this should not produce double refresh
async tabNoteSwitchedAndActivatedEvent() {
this.tabContext = appContext.tabManager.getActiveTabContext();
async tabNoteSwitchedAndActivatedEvent({tabId, notePath}) {
if (this.isTab(tabId) && this.notePath === notePath) {
this.tabContext = appContext.tabManager.getActiveTabContext();
await this.refresh();
await this.refresh();
}
}
async treeCacheReloadedEvent() {