Emit authenticationStateChanged when setting auth to NotAuthenticated

So that the interface may display this as well.

Contributes to issue CURA-4376.
This commit is contained in:
Ghostkeeper 2017-10-02 16:42:53 +02:00
parent b7090feadb
commit 894c3fc0da
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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()