mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Progress is now hidden when connection is lost
CURA-1851
This commit is contained in:
parent
8fbc85dd55
commit
bd7e8e4c52
1 changed files with 2 additions and 0 deletions
|
@ -608,6 +608,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
if bytes_total > 0:
|
if bytes_total > 0:
|
||||||
new_progress = bytes_sent / bytes_total * 100
|
new_progress = bytes_sent / bytes_total * 100
|
||||||
if new_progress > self._progress_message.getProgress():
|
if new_progress > self._progress_message.getProgress():
|
||||||
|
self._progress_message.show() # Ensure that the message is visible.
|
||||||
self._progress_message.setProgress(bytes_sent / bytes_total * 100)
|
self._progress_message.setProgress(bytes_sent / bytes_total * 100)
|
||||||
else:
|
else:
|
||||||
self._progress_message.setProgress(0)
|
self._progress_message.setProgress(0)
|
||||||
|
self._progress_message.hide()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue