Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Grabacr07 committed Oct 29, 2023
1 parent 9df97f1 commit d803dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SilentSelene/UI.Controls/RemainingConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class RemainingConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
=> value is TimeSpan span
? $"{span.TotalHours:00}:{span.Minutes:00}:{span.Seconds:00}"
? $"{(int)span.TotalHours:00}:{span.Minutes:00}:{span.Seconds:00}"
: "";

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Expand Down

0 comments on commit d803dd4

Please sign in to comment.