From 512a942f7514ecfefc198c6007e5fc4e46be6024 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 4 Oct 2017 15:54:19 +0200 Subject: [PATCH] Added a tickle to zipping state of messages --- plugins/UM3NetworkPrinting/NetworkClusterPrinterOutputDevice.py | 1 + plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/UM3NetworkPrinting/NetworkClusterPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkClusterPrinterOutputDevice.py index 32ed18bc9f..5ce498e11c 100644 --- a/plugins/UM3NetworkPrinting/NetworkClusterPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkClusterPrinterOutputDevice.py @@ -340,6 +340,7 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte def _compressDataAndNotifyQt(data_to_append): 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. # Pretend that this is a response, as zipping might take a bit of time. self._last_response_time = time.time() diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index 3ea48be33c..5e608120ab 100755 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -871,6 +871,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): def _compress_data_and_notify_qt(data_to_append): 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. # Pretend that this is a response, as zipping might take a bit of time. self._last_response_time = time()