Also report 0% print progress to plugins

Fixes #1344
This commit is contained in:
Gina Häußge 2016-05-20 10:24:47 +02:00
parent 821fa4299b
commit 801d60388a

View file

@ -629,7 +629,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
printTimeLeft = totalPrintTime - cleanedPrintTime if (totalPrintTime is not None and cleanedPrintTime is not None) else None
if progress:
if progress is not None:
progress_int = int(progress * 100)
if self._lastProgressReport != progress_int:
self._lastProgressReport = progress_int