summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorJoshua Shaffer <[email protected]>2019-12-07 13:07:40 -0500
committersr55 <[email protected]>2019-12-09 17:35:25 +0000
commit726aa222ed0db095edcbcb558e629cc409650f5e (patch)
tree6b37a168b4e4a54b5250bce606fdb7372d3a5e1d /win
parent083198da477c9004f2dff75a220883d3875c01b4 (diff)
WinUI: Notify of display field changes for QueueStats (#2488)
(cherry picked from commit 667554622bbb22e214cdd312e408a37247008310)
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs11
1 files changed, 7 insertions, 4 deletions
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);
}
}
}