Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/API
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2020-05-12 15:19:51 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-12 15:19:51 +0300
commit3ca703f00c8f5399a7fa27bf659998280544f130 (patch)
tree09bc99b0a519b534bdcacfdb9f945985b2551e8b /cura/API
parent903c251f341bea18c3446c79625d395e3076fa2c (diff)
parent6af502088e47695daf641cf4c210eb2d79353278 (diff)
Merge remote-tracking branch 'origin/CURA-7290_manual_account_sync' into CURA-7290_manual_account_sync
Diffstat (limited to 'cura/API')
-rw-r--r--cura/API/Account.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py
index bb4d541c0b..bb830c87f8 100644
--- a/cura/API/Account.py
+++ b/cura/API/Account.py
@@ -1,7 +1,7 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from datetime import datetime
-from typing import Optional, Dict, TYPE_CHECKING
+from typing import Optional, Dict, TYPE_CHECKING, Union
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty, QTimer, Q_ENUMS
@@ -87,7 +87,7 @@ class Account(QObject):
self._update_timer.setSingleShot(True)
self._update_timer.timeout.connect(self.syncRequested)
- self._sync_services = {} # type: Dict[str, SyncState]
+ self._sync_services = {} # type: Dict[str, int]
"""contains entries "service_name" : SyncState"""
def initialize(self) -> None:
@@ -97,7 +97,7 @@ class Account(QObject):
self._authorization_service.accessTokenChanged.connect(self._onAccessTokenChanged)
self._authorization_service.loadAuthDataFromPreferences()
- def setSyncState(self, service_name: str, state: SyncState) -> None:
+ def setSyncState(self, service_name: str, state: int) -> None:
""" Can be used to register sync services and update account sync states
Contract: A sync service is expected exit syncing state in all cases, within reasonable time