mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 09:08:58 +08:00
Remove unused pyqtProperty
CURA-7290
This commit is contained in:
parent
50ae2064b5
commit
ef6cf8d5cc
@ -6,7 +6,6 @@ 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
|
||||
@ -31,7 +30,7 @@ i18n_catalog = i18nCatalog("cura")
|
||||
class Account(QObject):
|
||||
|
||||
class SyncState(Enum):
|
||||
"""Caution: values used in qml (eg. UserOperations.qml)"""
|
||||
"""Caution: values used in qml (eg. SyncState.qml)"""
|
||||
|
||||
SYNCING = "syncing",
|
||||
SUCCESS = "success",
|
||||
@ -177,10 +176,6 @@ class Account(QObject):
|
||||
def lastSyncDateTime(self) -> str:
|
||||
return self._last_sync_str
|
||||
|
||||
@pyqtProperty(str, notify=syncStateChanged)
|
||||
def syncState(self) -> str:
|
||||
return self._sync_state
|
||||
|
||||
@pyqtSlot()
|
||||
def sync(self) -> None:
|
||||
"""Checks for new cloud printers"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user