1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Description: Fix rendering time display
(Hours & minutes were dropped if value was one)
Author: Peter Blackman <peter@pblackman.plus.com>
Last-Update: 2020-07-13
Forwarded: Yes
Index: b/src/renderthread.cpp
===================================================================
--- a/src/renderthread.cpp
+++ b/src/renderthread.cpp
@@ -526,12 +526,12 @@
if (State == Busy)
{
QString t_format;
- if (EstRemain.hour() > 1)
+ if (EstRemain.hour() > 0)
t_format = tr("hh:mm:ss");
- else if (EstRemain.minute() > 1)
+ else if (EstRemain.minute() > 0)
t_format = tr("mm:ss");
else
- t_format = tr("s.z");
+ t_format = tr("s");
estRemainString = EstRemain.toString(t_format);
message = tr("rendering... %L1% ( %2 remaining )")
.arg(Percent, 0, 'f', 1, '0')
@@ -543,9 +543,9 @@
else
{
QString t_format;
- if (Runtime.hour() > 1)
+ if (Runtime.hour() > 0)
t_format = tr("hh:mm:ss.z");
- else if (Runtime.minute() > 1)
+ else if (Runtime.minute() > 0)
t_format = tr("mm:ss");
else
{
|