From 894c3fc0daba04d9e1abf9ea0b0a4e8ed152c6cf Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 2 Oct 2017 16:42:53 +0200 Subject: [PATCH] Emit authenticationStateChanged when setting auth to NotAuthenticated So that the interface may display this as well. Contributes to issue CURA-4376. --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index 592b0e9081..f23986f7f0 100755 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -428,7 +428,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): Logger.log("d", "Requestion authentication for %s due to action %s" % (self._key, action_id)) self._authentication_failed_message.hide() self._not_authenticated_message.hide() - self._authentication_state = AuthState.NotAuthenticated + self.setAuthenticationState(AuthState.NotAuthenticated) self._authentication_counter = 0 self._authentication_requested_message.setProgress(0) self._authentication_id = None @@ -615,7 +615,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): # Reset authentication state self._authentication_requested_message.hide() - self._authentication_state = AuthState.NotAuthenticated + self.setAuthenticationState(AuthState.NotAuthenticated) self._authentication_counter = 0 self._authentication_timer.stop()