mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Request is now only triggered on right actions
CURA-2279
This commit is contained in:
parent
c5d0942ee2
commit
6435e8ce6f
1 changed files with 9 additions and 8 deletions
|
@ -246,14 +246,15 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
|
||||
@pyqtSlot()
|
||||
def requestAuthentication(self, message_id, action_id):
|
||||
self._authentication_failed_message.hide()
|
||||
self._not_authenticated_message.hide()
|
||||
self._authentication_state = AuthState.NotAuthenticated
|
||||
self._authentication_counter = 0
|
||||
self._authentication_requested_message.setProgress(0)
|
||||
self._authentication_id = None
|
||||
self._authentication_key = None
|
||||
self._createNetworkManager() # Re-create network manager to force re-authentication.
|
||||
if action_id == "Request" or action_id == "Retry":
|
||||
self._authentication_failed_message.hide()
|
||||
self._not_authenticated_message.hide()
|
||||
self._authentication_state = AuthState.NotAuthenticated
|
||||
self._authentication_counter = 0
|
||||
self._authentication_requested_message.setProgress(0)
|
||||
self._authentication_id = None
|
||||
self._authentication_key = None
|
||||
self._createNetworkManager() # Re-create network manager to force re-authentication.
|
||||
|
||||
## Request data from the connected device.
|
||||
def _update(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue