Request is now only triggered on right actions

CURA-2279
This commit is contained in:
Jaime van Kessel 2016-09-13 09:49:17 +02:00
parent c5d0942ee2
commit 6435e8ce6f

View file

@ -246,6 +246,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
@pyqtSlot() @pyqtSlot()
def requestAuthentication(self, message_id, action_id): def requestAuthentication(self, message_id, action_id):
if action_id == "Request" or action_id == "Retry":
self._authentication_failed_message.hide() self._authentication_failed_message.hide()
self._not_authenticated_message.hide() self._not_authenticated_message.hide()
self._authentication_state = AuthState.NotAuthenticated self._authentication_state = AuthState.NotAuthenticated