mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 06:11:09 -07:00
Finish merge of auto sync packages
CURA-7290
This commit is contained in:
parent
9b79b70f2b
commit
8937c63219
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue