From bfae7e9fb11d3d791d523f5d905295f096a06cae Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Wed, 6 May 2020 12:54:07 +0200 Subject: [PATCH] Replace some hard-coded sync states CURA-7290 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index bc26d7f8b5..efb0b30e4b 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -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()