From 726aa222ed0db095edcbcb558e629cc409650f5e Mon Sep 17 00:00:00 2001 From: Joshua Shaffer Date: Sat, 7 Dec 2019 13:07:40 -0500 Subject: WinUI: Notify of display field changes for QueueStats (#2488) (cherry picked from commit 667554622bbb22e214cdd312e408a37247008310) --- win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'win/CS') diff --git a/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs b/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs index 8069259f8..237bd0b1c 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs @@ -52,6 +52,7 @@ namespace HandBrakeWPF.Services.Queue.Model this.NotifyOfPropertyChange(() => this.StartTime); this.NotifyOfPropertyChange(() => this.Duration); this.NotifyOfPropertyChange(() => this.StartTimeDisplay); + this.NotifyOfPropertyChange(() => this.DurationDisplay); } } @@ -86,6 +87,7 @@ namespace HandBrakeWPF.Services.Queue.Model this.NotifyOfPropertyChange(() => this.EndTime); this.NotifyOfPropertyChange(() => this.Duration); this.NotifyOfPropertyChange(() => this.EndTimeDisplay); + this.NotifyOfPropertyChange(() => this.DurationDisplay); } } @@ -171,6 +173,7 @@ namespace HandBrakeWPF.Services.Queue.Model this.finalFileSize = value; this.NotifyOfPropertyChange(() => this.FinalFileSize); this.NotifyOfPropertyChange(() => this.FinalFileSizeInMegaBytes); + this.NotifyOfPropertyChange(() => this.FileSizeDisplay); } } @@ -220,16 +223,16 @@ namespace HandBrakeWPF.Services.Queue.Model public void Reset() { + this.isPaused = false; + this.pausedTimespan = TimeSpan.Zero; + this.pausedStartPoint = DateTime.MinValue; this.StartTime = DateTime.MinValue; this.EndTime = DateTime.MinValue; this.FinalFileSize = 0; - this.pausedTimespan = TimeSpan.Zero; - this.pausedStartPoint = DateTime.MinValue; this.CompletedActivityLogPath = null; - this.NotifyOfPropertyChange(() => this.FinalFileSizeInMegaBytes); this.NotifyOfPropertyChange(() => this.PausedDuration); - this.NotifyOfPropertyChange(() => this.DurationDisplay); + this.NotifyOfPropertyChange(() => this.PausedDisplay); } } } -- cgit v1.2.3