diff --git a/tabby-core/src/services/app.service.ts b/tabby-core/src/services/app.service.ts index 98071aea..324e8574 100644 --- a/tabby-core/src/services/app.service.ts +++ b/tabby-core/src/services/app.service.ts @@ -139,12 +139,6 @@ 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()) diff --git a/tabby-core/src/tabContextMenu.ts b/tabby-core/src/tabContextMenu.ts index b40cb28d..d45b65e0 100644 --- a/tabby-core/src/tabContextMenu.ts +++ b/tabby-core/src/tabContextMenu.ts @@ -201,6 +201,8 @@ export class TaskCompletionContextMenu extends TabContextMenuItemProvider { type: 'checkbox', checked: !!extTab.__outputNotificationSubscription, click: () => { + tab.clearActivity() + if (extTab.__outputNotificationSubscription) { extTab.__outputNotificationSubscription.unsubscribe() extTab.__outputNotificationSubscription = null