From 7be921592a355334af45965d166fb08dfdcee942 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 18 Jun 2022 11:26:09 +0200 Subject: [PATCH] fixed "notify on activity" not working for the currently active tab --- tabby-core/src/services/app.service.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tabby-core/src/services/app.service.ts b/tabby-core/src/services/app.service.ts index 5a464092..28667a23 100644 --- a/tabby-core/src/services/app.service.ts +++ b/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())