Add manual sync button (non-functional)

CURA-7290
This commit is contained in:
Nino van Hooff 2020-04-30 17:19:14 +02:00
parent 4fd5c6e337
commit 828e931f52
2 changed files with 49 additions and 0 deletions

View file

@ -4,6 +4,7 @@ from typing import Optional, Dict, TYPE_CHECKING
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
from UM.Logger import Logger
from UM.Message import Message
from UM.i18n import i18nCatalog
from cura.OAuth2.AuthorizationService import AuthorizationService
@ -128,6 +129,12 @@ class Account(QObject):
return None
return user_profile.__dict__
@pyqtSlot()
def sync(self) -> None:
"""Checks for new cloud printers"""
Logger.info("Starting account sync")
@pyqtSlot()
def logout(self) -> None:
if not self._logged_in: