mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:05:53 +08:00
Replace some hard-coded sync states
CURA-7290
This commit is contained in:
parent
ef6cf8d5cc
commit
bfae7e9fb1
@ -134,13 +134,13 @@ class CloudOutputDeviceManager:
|
||||
self._connectToActiveMachine()
|
||||
|
||||
self._syncing = False
|
||||
self._account.setSyncState(self.SYNC_SERVICE_NAME, "success")
|
||||
self._account.setSyncState(self.SYNC_SERVICE_NAME, Account.SyncState.SUCCESS)
|
||||
# Schedule a new update
|
||||
self._update_timer.start()
|
||||
|
||||
def _onGetRemoteClusterFailed(self):
|
||||
self._syncing = False
|
||||
self._account.setSyncState(self.SYNC_SERVICE_NAME, "error")
|
||||
self._account.setSyncState(self.SYNC_SERVICE_NAME, Account.SyncState.ERROR)
|
||||
# Schedule a new update
|
||||
self._update_timer.start()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user