Finish merge of auto sync packages

CURA-7290
This commit is contained in:
Nino van Hooff 2020-05-06 16:08:47 +02:00
parent 9b79b70f2b
commit 8937c63219

View File

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