mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Added a tickle to zipping state of messages
This commit is contained in:
parent
b62c19206f
commit
512a942f75
2 changed files with 2 additions and 0 deletions
|
@ -340,6 +340,7 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
|
||||||
|
|
||||||
def _compressDataAndNotifyQt(data_to_append):
|
def _compressDataAndNotifyQt(data_to_append):
|
||||||
compressed_data = gzip.compress(data_to_append.encode("utf-8"))
|
compressed_data = gzip.compress(data_to_append.encode("utf-8"))
|
||||||
|
self._progress_message.setProgress(-1) # Tickle the message so that it's clear that it's still being used.
|
||||||
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
||||||
# Pretend that this is a response, as zipping might take a bit of time.
|
# Pretend that this is a response, as zipping might take a bit of time.
|
||||||
self._last_response_time = time.time()
|
self._last_response_time = time.time()
|
||||||
|
|
|
@ -871,6 +871,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
|
|
||||||
def _compress_data_and_notify_qt(data_to_append):
|
def _compress_data_and_notify_qt(data_to_append):
|
||||||
compressed_data = gzip.compress(data_to_append.encode("utf-8"))
|
compressed_data = gzip.compress(data_to_append.encode("utf-8"))
|
||||||
|
self._progress_message.setProgress(-1) # Tickle the message so that it's clear that it's still being used.
|
||||||
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
||||||
# Pretend that this is a response, as zipping might take a bit of time.
|
# Pretend that this is a response, as zipping might take a bit of time.
|
||||||
self._last_response_time = time()
|
self._last_response_time = time()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue