mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:35:58 +08:00
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:
parent
b7090feadb
commit
894c3fc0da
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user