mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Add manual sync button (non-functional)
CURA-7290
This commit is contained in:
parent
4fd5c6e337
commit
828e931f52
2 changed files with 49 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue