mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:16:04 +08:00
Progress is now hidden when connection is lost
CURA-1851
This commit is contained in:
parent
8fbc85dd55
commit
bd7e8e4c52
@ -608,6 +608,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
if bytes_total > 0:
|
||||
new_progress = bytes_sent / bytes_total * 100
|
||||
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)
|
||||
else:
|
||||
self._progress_message.setProgress(0)
|
||||
self._progress_message.hide()
|
||||
|
Loading…
x
Reference in New Issue
Block a user