chiark / gitweb /
Large update to the config wizard, new style machine check (unfinished)
[cura.git] / Cura / gui / printWindow.py
index 2846d5298a146c36495e6f82fe2d4cf826a57937..4eb91444057d93b7398a07bd72aaebf7c028d93f 100644 (file)
@@ -353,7 +353,10 @@ class printWindow(wx.Frame):
                        if self.currentZ > 0:\r
                                status += 'Height: %0.1f\n' % (self.currentZ)\r
                        status += 'Print time: %02d:%02d\n' % (int(printTime / 60), int(printTime % 60))\r
-                       status += 'Print time left: %02d:%02d\n' % (int(printTimeLeft / 60), int(printTimeLeft % 60))\r
+                       if printTime < 1:\r
+                               status += 'Print time left: Unknown\n'\r
+                       else:\r
+                               status += 'Print time left: %02d:%02d\n' % (int(printTimeLeft / 60), int(printTimeLeft % 60))\r
                        self.progress.SetValue(self.machineCom.getPrintPos())\r
                if self.machineCom != None:\r
                        if self.machineCom.getTemp() > 0:\r