From a754952f5ef0f1c56121416c48d1247e8cf9a670 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 13 Sep 2016 17:43:57 +0200 Subject: [PATCH] Close connection now also ensures that cached machine & material ids are reset CURA-2354 --- NetworkPrinterOutputDevice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index 612f2932c7..291dedab1a 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -400,6 +400,10 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): self._authentication_failed_message.hide() self._authentication_succeeded_message.hide() + # Reset stored material & hotend data. + self._material_ids = [""] * self._num_extruders + self._hotend_ids = [""] * self._num_extruders + if self._error_message: self._error_message.hide()