mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-12-01 10:47:39 +01:00
Fixed: Issue where estimated duration was throwing an exception in some cases.
This commit is contained in:
1 parent
5637aa1f74
commit
498cc5773a
1 file changed
+4
@@ -20,6 +20,10 @@ namespace FileConverter.ValueConverters
|
||||
ConversionState state = (ConversionState)values[0];
|
||||
DateTime startTime = (DateTime)values[1];
|
||||
float progress = (float)values[2];
|
||||
if (progress <= 0f)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
if (state == ConversionState.Unknown ||
|
||||
state == ConversionState.Ready ||
|
||||
|
||||
Reference in new issue
Block a user