From f61904229774342dbf130e3dfbeeb770be641803 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Tue, 28 Jun 2022 23:05:59 +0200 Subject: [PATCH] little change --- src/renderer/services/progress-bar.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/services/progress-bar.service.ts b/src/renderer/services/progress-bar.service.ts index 6fe146b3..ff3af549 100644 --- a/src/renderer/services/progress-bar.service.ts +++ b/src/renderer/services/progress-bar.service.ts @@ -1,4 +1,4 @@ -import { BehaviorSubject, distinctUntilChanged, filter, map, Observable, Subscription, timer } from "rxjs"; +import { BehaviorSubject, distinctUntilChanged, map, Observable, Subscription, timer } from "rxjs"; export class ProgressBarService{ @@ -27,6 +27,7 @@ export class ProgressBarService{ } public unsubscribe(){ + this._progression$.next(0); this.subscription && this.subscription.unsubscribe(); this.subscription = null; } @@ -51,7 +52,7 @@ export class ProgressBarService{ } public hide(unsubscribe: boolean){ - if(unsubscribe){ this.unsubscribe(); this.progression$.next(0); } + if(unsubscribe){ this.unsubscribe(); } this.visible$.next(false); }