Merge pull request #7935 from Ultimaker/CURA-7418-update-profile-window

CURA-7418 update profile window
This commit is contained in:
Nino van Hooff 2020-06-17 15:35:19 +02:00 committed by GitHub
commit 5c52dcc5c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 202 additions and 106 deletions

View file

@ -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