mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Use property & states instead of listening to changed signal
It makes a lot more sense to me to use states and an actual property. CURA-7418
This commit is contained in:
parent
f4c5a134c2
commit
d33529f932
2 changed files with 39 additions and 32 deletions
|
@ -103,6 +103,11 @@ class Account(QObject):
|
|||
self._authorization_service.accessTokenChanged.connect(self._onAccessTokenChanged)
|
||||
self._authorization_service.loadAuthDataFromPreferences()
|
||||
|
||||
|
||||
@pyqtProperty(int, notify=syncStateChanged)
|
||||
def syncState(self):
|
||||
return self._sync_state
|
||||
|
||||
def setSyncState(self, service_name: str, state: int) -> None:
|
||||
""" Can be used to register sync services and update account sync states
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue