diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-06-11 18:31:19 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-06-11 18:31:19 +0300 |
commit | d33529f932472907324adfd197db4d8da6c2b3f5 (patch) | |
tree | 63f04bdae47b672e6f5da7d0cb69d7f63bb93969 /cura/API | |
parent | f4c5a134c27bf9c08137b65bb8cb550b7f0c9e57 (diff) |
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
Diffstat (limited to 'cura/API')
-rw-r--r-- | cura/API/Account.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py index ef46368474..4868204a94 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -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 |