Convert SYNC_STATES to Enum

CURA-7290
This commit is contained in:
Nino van Hooff 2020-05-04 17:26:38 +02:00
parent 637a241d99
commit eac884fcd2
3 changed files with 23 additions and 18 deletions

View file

@ -104,7 +104,7 @@ class CloudOutputDeviceManager:
self._update_timer.stop()
self._syncing = True
self._account.setSyncState(self.SYNC_SERVICE_NAME, "syncing")
self._account.setSyncState(self.SYNC_SERVICE_NAME, Account.SyncState.SYNCING)
self._api.getClusters(self._onGetRemoteClustersFinished, self._onGetRemoteClusterFailed)
def _onGetRemoteClustersFinished(self, clusters: List[CloudClusterResponse]) -> None: