mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Fixed the update button busy state
Contributes to: CURA-8587
This commit is contained in:
parent
b28cb5ad5e
commit
28b6bfb729
4 changed files with 11 additions and 89 deletions
|
@ -379,78 +379,3 @@ class PackageModel(QObject):
|
|||
if value != self._can_update:
|
||||
self._can_update = value
|
||||
self.stateManageButtonChanged.emit()
|
||||
|
||||
# ----
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# isInstalledChanged = pyqtSignal()
|
||||
#
|
||||
# @pyqtProperty(bool, notify = isInstalledChanged)
|
||||
# def isInstalled(self):
|
||||
# return self._is_installed
|
||||
#
|
||||
# isEnabledChanged = pyqtSignal()
|
||||
#
|
||||
#
|
||||
#f
|
||||
# @pyqtProperty(bool, notify = isEnabledChanged)
|
||||
# def isEnabled(self) -> bool:
|
||||
# return self._is_active
|
||||
#
|
||||
#
|
||||
#
|
||||
# isManageEnableStateChanged = pyqtSignalf()
|
||||
#
|
||||
# @pyqtProperty(str, notify = isManageEnableStateChanged)
|
||||
# def isManageEnableState(self) -> str:
|
||||
# if self.isEnabling:
|
||||
# return "busy"
|
||||
# if self.
|
||||
#
|
||||
# manageEnableStateChanged = pyqtSignal()
|
||||
#
|
||||
# @pyqtProperty(str, notify = manageEnableStateChanged)
|
||||
# def manageEnableState(self) -> str:
|
||||
# # TODO: Handle manual installed packages
|
||||
# if self._is_installed:
|
||||
# if self._is_active:
|
||||
# return "secondary"
|
||||
# else:
|
||||
# return "primary"
|
||||
# else:
|
||||
# return "hidden"
|
||||
#
|
||||
# manageInstallStateChanged = pyqtSignal()
|
||||
#
|
||||
# def setManageInstallState(self, value: bool) -> None:
|
||||
# if value != self._is_installed:
|
||||
# self._is_installed = value
|
||||
# self.manageInstallStateChanged.emit()
|
||||
# self.manageEnableStateChanged.emit()
|
||||
#
|
||||
# @pyqtProperty(str, notify = manageInstallStateChanged)
|
||||
# def manageInstallState(self) -> str:
|
||||
# if self._is_installed:
|
||||
# if self._is_bundled:
|
||||
# return "hidden"
|
||||
# else:
|
||||
# return "secondary"
|
||||
# else:
|
||||
# return "primary"
|
||||
#
|
||||
# manageUpdateStateChanged = pyqtSignal()
|
||||
#
|
||||
# @pyqtProperty(str, notify = manageUpdateStateChanged)
|
||||
# def manageUpdateState(self) -> str:
|
||||
# if self._can_update:
|
||||
# return "primary"
|
||||
# return "hidden"
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue