Connect the manual sync button

CURA-7290
This commit is contained in:
Nino van Hooff 2020-05-01 15:56:09 +02:00
parent a6c0ee6c82
commit 0aed6d3731
2 changed files with 18 additions and 1 deletions

View file

@ -31,6 +31,8 @@ class Account(QObject):
loginStateChanged = pyqtSignal(bool)
accessTokenChanged = pyqtSignal()
cloudPrintersDetectedChanged = pyqtSignal(bool)
isSyncingChanged = pyqtSignal(bool)
manualSyncRequested = pyqtSignal()
def __init__(self, application: "CuraApplication", parent = None) -> None:
super().__init__(parent)
@ -133,7 +135,7 @@ class Account(QObject):
def sync(self) -> None:
"""Checks for new cloud printers"""
Logger.info("Starting account sync")
self.manualSyncRequested.emit()
@pyqtSlot()
def logout(self) -> None: