Hide "Request Access" buttons when access request is active

CURA-2277 & CURA-2276
This commit is contained in:
fieldOfView 2016-09-14 16:40:20 +02:00
parent f11308e74e
commit 20f76b62fe
2 changed files with 24 additions and 18 deletions

View file

@ -242,7 +242,15 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._authentication_timer.stop()
self._authentication_counter = 0
self._authentication_state = auth_state
if auth_state != self._authentication_state:
self._authentication_state = auth_state
self.authenticationStateChanged.emit()
authenticationStateChanged = pyqtSignal()
@pyqtProperty(int, notify = authenticationStateChanged)
def authenticationState(self):
return self._authentication_state
@pyqtSlot()
def requestAuthentication(self, message_id = None, action_id = "Retry"):