Browse Source

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

Eugene Pankov 3 years ago
parent
commit
7be921592a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tabby-core/src/services/app.service.ts

+ 6 - 0
tabby-core/src/services/app.service.ts

@@ -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())