diff options
author | sr55 <[email protected]> | 2020-02-23 19:55:11 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2020-02-23 20:03:01 +0000 |
commit | 50d0fa29c9954c2769287a1ecf36d8b4d5e5d75f (patch) | |
tree | 3b5d9416f5e01ff2f862387524b56cbe4e1c89bb /win/CS/HandBrakeWPF/Services | |
parent | d740d51cfedba30e5ed355fbe9e93f32b1666bec (diff) |
WinGui: Fix Duration / Paused Duration when > 1 day. Fixes #2649
(cherry picked from commit ff8cd471a96ac161cdb305d9109391b0c60473c9)
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs b/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs index 237bd0b1c..6295bab15 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs @@ -126,7 +126,7 @@ namespace HandBrakeWPF.Services.Queue.Model return string.Empty; } - return PausedDuration.ToString("hh\\:mm\\:ss"); + return this.PausedDuration.Days >= 1 ? string.Format(@"{0:d\:hh\:mm\:ss}", this.PausedDuration) : string.Format(@"{0:hh\:mm\:ss}", this.PausedDuration); } } @@ -152,7 +152,7 @@ namespace HandBrakeWPF.Services.Queue.Model return string.Empty; } - return this.Duration.ToString("hh\\:mm\\:ss"); + return this.Duration.Days >= 1 ? string.Format(@"{0:d\:hh\:mm\:ss}", this.Duration) : string.Format(@"{0:hh\:mm\:ss}", this.Duration); } } |