Do not eat 0% progress

Fixes #1344 (this time for good I hope)
This commit is contained in:
Gina Häußge 2017-01-11 17:57:45 +01:00
parent 071c32fff1
commit fb5d5682e6

View file

@ -168,7 +168,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
#~~ progress plugin reporting
def _reportPrintProgressToPlugins(self, progress):
if not progress or not self._selectedFile or not "sd" in self._selectedFile or not "filename" in self._selectedFile:
if progress is None or not self._selectedFile or not "sd" in self._selectedFile or not "filename" in self._selectedFile:
return
storage = "sdcard" if self._selectedFile["sd"] else "local"