diff --git a/tabby-core/src/components/baseTab.component.ts b/tabby-core/src/components/baseTab.component.ts index 181348db..15600af6 100644 --- a/tabby-core/src/components/baseTab.component.ts +++ b/tabby-core/src/components/baseTab.component.ts @@ -1,4 +1,4 @@ -import { Observable, Subject } from 'rxjs' +import { Observable, Subject, distinct } from 'rxjs' import { EmbeddedViewRef, ViewContainerRef, ViewRef } from '@angular/core' import { RecoveryToken } from '../api/tabRecovery' import { BaseComponent } from './base.component' @@ -69,8 +69,8 @@ export abstract class BaseTabComponent extends BaseComponent { get focused$ (): Observable { return this.focused } get blurred$ (): Observable { return this.blurred } - get titleChange$ (): Observable { return this.titleChange } - get progress$ (): Observable { return this.progress } + get titleChange$ (): Observable { return this.titleChange.pipe(distinct()) } + get progress$ (): Observable { return this.progress.pipe(distinct()) } get activity$ (): Observable { return this.activity } get destroyed$ (): Observable { return this.destroyed } get recoveryStateChangedHint$ (): Observable { return this.recoveryStateChangedHint }