diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-06-26 17:09:33 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-06-26 17:09:33 +0300 |
commit | 294afdb7ca762c0cd174f9a25e5c8be4c157d0ad (patch) | |
tree | d84c51cd5d3f0a7fa39639550efd7d766dc36c0c /cura | |
parent | 4f1a18f1024c5bfc4cdef46a856ec4fe42011c71 (diff) |
Connect sync timer to sync() for consistency and add unit tests.
Also rename a function to camelCase
CURA-7473
Diffstat (limited to 'cura')
-rw-r--r-- | cura/API/Account.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py index 991a2ef967..3ef95834d2 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -94,7 +94,7 @@ class Account(QObject): self._update_timer.setInterval(int(self.SYNC_INTERVAL * 1000)) # The timer is restarted explicitly after an update was processed. This prevents 2 concurrent updates self._update_timer.setSingleShot(True) - self._update_timer.timeout.connect(self.syncRequested) + self._update_timer.timeout.connect(self.sync) self._sync_services = {} # type: Dict[str, int] """contains entries "service_name" : SyncState""" @@ -282,7 +282,7 @@ class Account(QObject): self._sync() @pyqtSlot() - def update_packages(self): + def onUpdatePackagesClicked(self): if self._update_packages_action is not None: self._update_packages_action() |