diff --git a/cura/API/Account.py b/cura/API/Account.py index 7ad2a1802c..d4cf1f7106 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -96,7 +96,7 @@ class Account(QObject): Example: `setSyncState("PluginSyncService", Account.SyncState.SYNCING)` :param service_name: A unique name for your service, such as `plugins` or `backups` - :param state: One of Account.SYNC_STATES + :param state: One of Account.SyncState """ prev_state = self._sync_state @@ -117,7 +117,7 @@ class Account(QObject): self._last_sync_str = datetime.now().strftime("%d/%m/%Y %H:%M") self.lastSyncDateTimeChanged.emit() - if self._sync_state != "syncing": + if self._sync_state != self.SyncState.SYNCING: # schedule new auto update after syncing completed (for whatever reason) if not self._update_timer.isActive(): self._update_timer.start()