Skip to content

Commit

Permalink
WinGui: Fix Duration / Paused Duration when > 1 day. Fixes HandBrake#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sr55 committed Feb 23, 2020
1 parent 4083aca commit ff8cd47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win/CS/HandBrakeWPF/Services/Queue/Model/QueueStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public string PausedDisplay
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);
}
}

Expand All @@ -152,7 +152,7 @@ public string DurationDisplay
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);
}
}

Expand Down

0 comments on commit ff8cd47

Please sign in to comment.