fixed "notify on activity" not working for the currently active tab

This commit is contained in:
Eugene Pankov
2022-06-18 11:26:09 +02:00
parent 53f3962640
commit 7be921592a

View File

@@ -133,6 +133,12 @@ export class AppService {
this.tabClosed.next(tab) this.tabClosed.next(tab)
}) })
tab.activity$.subscribe(() => {
if (tab === this._activeTab) {
tab.clearActivity()
}
})
if (tab instanceof SplitTabComponent) { if (tab instanceof SplitTabComponent) {
tab.tabAdded$.subscribe(() => this.emitTabsChanged()) tab.tabAdded$.subscribe(() => this.emitTabsChanged())
tab.tabRemoved$.subscribe(() => this.emitTabsChanged()) tab.tabRemoved$.subscribe(() => this.emitTabsChanged())