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
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

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