mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove canInstallChanged signal
It's not needed, this can just be handled with a direct call! CURA-8587
This commit is contained in:
parent
8a198f7911
commit
83c78c4b4d
1 changed files with 2 additions and 4 deletions
|
@ -46,7 +46,6 @@ class PackageList(ListModel):
|
|||
self._has_more = False
|
||||
self._has_footer = True
|
||||
self._to_install: Dict[str, str] = {}
|
||||
self.canInstallChanged.connect(self._requestInstall)
|
||||
|
||||
self._ongoing_requests: Dict[str, Optional[HttpRequestData]] = {"download_package": None}
|
||||
self._scope = JsonDecoratorScope(UltimakerCloudScope(CuraApplication.getInstance()))
|
||||
|
@ -135,8 +134,6 @@ class PackageList(ListModel):
|
|||
index = self.find("package", package_id)
|
||||
return self.getItem(index)["package"]
|
||||
|
||||
canInstallChanged = pyqtSignal(str, bool)
|
||||
|
||||
def _openLicenseDialog(self, package_id: str, license_content: str) -> None:
|
||||
plugin_path = self._plugin_registry.getPluginPath("Marketplace")
|
||||
if plugin_path is None:
|
||||
|
@ -236,7 +233,8 @@ class PackageList(ListModel):
|
|||
temp_file.close()
|
||||
self._to_install[package_id] = temp_file.name
|
||||
self._ongoing_requests["download_package"] = None
|
||||
self.canInstallChanged.emit(package_id, update)
|
||||
self._requestInstall(package_id, update)
|
||||
|
||||
|
||||
def _downloadError(self, package_id: str, update: bool = False, reply: Optional["QNetworkReply"] = None, error: Optional["QNetworkReply.NetworkError"] = None) -> None:
|
||||
if reply:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue