Transfer cloudPrintersDetectedChanged in DiscoveredUltimakerCloudPrintersModel

CURA-7022
This commit is contained in:
Kostas Karmas 2020-04-28 14:19:28 +02:00
parent 0ad9464131
commit ea404af973
4 changed files with 15 additions and 11 deletions

View file

@ -29,7 +29,6 @@ class Account(QObject):
# Signal emitted when user logged in or out.
loginStateChanged = pyqtSignal(bool)
accessTokenChanged = pyqtSignal()
cloudPrintersDetectedChanged = pyqtSignal(bool)
def __init__(self, application: "CuraApplication", parent = None) -> None:
super().__init__(parent)
@ -76,10 +75,6 @@ class Account(QObject):
def isLoggedIn(self) -> bool:
return self._logged_in
@pyqtProperty(bool, notify=cloudPrintersDetectedChanged)
def newCloudPrintersDetected(self) -> bool:
return self._new_cloud_printers_detected
def _onLoginStateChanged(self, logged_in: bool = False, error_message: Optional[str] = None) -> None:
if error_message:
if self._error_message: