|
@@ -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"
|
|
|
- #
|