diff options
author | Christian Hammacher <bmasterc@gmail.com> | 2022-06-09 19:19:11 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-06-22 11:03:20 +0300 |
commit | bd2df24482a64ee7053cbe61d0db5458f8ec2010 (patch) | |
tree | 9306109908b9d1b4f049f8c053ac6ead969c040f | |
parent | fa652467b4fb227d704a771b0de12e6d3e1dd48e (diff) |
Don't report times left if not printing
-rw-r--r-- | src/PrintMonitor/PrintMonitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PrintMonitor/PrintMonitor.cpp b/src/PrintMonitor/PrintMonitor.cpp index 9a45b65e..fc46edee 100644 --- a/src/PrintMonitor/PrintMonitor.cpp +++ b/src/PrintMonitor/PrintMonitor.cpp @@ -393,7 +393,7 @@ float PrintMonitor::EstimateTimeLeft(PrintEstimationMethod method) const noexcep ReadLocker locker(printMonitorLock); // We can't provide an estimation if we don't have any information about the file - if (!printingFileParsed) + if (!printingFileParsed || !isPrinting) { return 0.0; } |