mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Hide "Request Access" buttons when access request is active
CURA-2277 & CURA-2276
This commit is contained in:
parent
f11308e74e
commit
20f76b62fe
2 changed files with 24 additions and 18 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue