Re-added handling for 'unknown' print times in Print History.
This commit is contained in:
parent
997eff67e6
commit
705a9df2da
1 changed files with 5 additions and 1 deletions
|
|
@ -129,7 +129,11 @@ namespace MatterHackers.MatterControl.PrintHistory
|
|||
|
||||
TextWidget timeIndicator;
|
||||
int minutes = printTask.PrintTimeMinutes;
|
||||
if (minutes > 60)
|
||||
if (minutes < 0)
|
||||
{
|
||||
timeIndicator = new TextWidget("Unknown");
|
||||
}
|
||||
else if (minutes > 60)
|
||||
{
|
||||
timeIndicator = new TextWidget("{0}hrs {1}min".FormatWith(printTask.PrintTimeMinutes / 60, printTask.PrintTimeMinutes % 60), pointSize: 12);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue