mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 03:05:55 +08:00
Finish merge of auto sync packages
CURA-7290
This commit is contained in:
parent
9b79b70f2b
commit
8937c63219
@ -96,7 +96,7 @@ class Account(QObject):
|
|||||||
|
|
||||||
Example: `setSyncState("PluginSyncService", Account.SyncState.SYNCING)`
|
Example: `setSyncState("PluginSyncService", Account.SyncState.SYNCING)`
|
||||||
:param service_name: A unique name for your service, such as `plugins` or `backups`
|
: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
|
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._last_sync_str = datetime.now().strftime("%d/%m/%Y %H:%M")
|
||||||
self.lastSyncDateTimeChanged.emit()
|
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)
|
# schedule new auto update after syncing completed (for whatever reason)
|
||||||
if not self._update_timer.isActive():
|
if not self._update_timer.isActive():
|
||||||
self._update_timer.start()
|
self._update_timer.start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user