mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Use single qml file for sync states
CURA-7290
This commit is contained in:
parent
eeea1692fd
commit
637a241d99
7 changed files with 114 additions and 171 deletions
|
@ -34,7 +34,7 @@ class Account(QObject):
|
|||
cloudPrintersDetectedChanged = pyqtSignal(bool)
|
||||
manualSyncRequested = pyqtSignal()
|
||||
lastSyncDateTimeChanged = pyqtSignal()
|
||||
syncStateChanged = pyqtSignal()
|
||||
syncStateChanged = pyqtSignal(str)
|
||||
|
||||
SYNC_STATES = ["syncing", "success", "error"]
|
||||
|
||||
|
@ -99,7 +99,7 @@ class Account(QObject):
|
|||
self._sync_state = "success"
|
||||
|
||||
if self._sync_state != prev_state:
|
||||
self.syncStateChanged.emit()
|
||||
self.syncStateChanged.emit(self._sync_state)
|
||||
|
||||
if self._sync_state == "success":
|
||||
self._last_sync_str = datetime.now().strftime("%d/%m/%Y %H:%M")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue