Disabled old toolbox functionality for updating

The signals messed up the new update process.

Contributes to CURA-8587 and relates to CURA-8588
This commit is contained in:
Jelle Spijker 2021-12-10 11:16:08 +01:00
parent d9f77d7ffd
commit e0754c7015
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A

View File

@ -1,5 +1,5 @@
# Copyright (c) 2021 Ultimaker B.V.
# Toolbox is released under the terms of the LGPLv3 or higher.
# Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import json
import os
@ -634,8 +634,8 @@ class Toolbox(QObject, Extension):
self._models[request_type].setFilter({"tags": "generic"})
elif request_type == "updates":
# Tell the package manager that there's a new set of updates available.
packages = set([pkg["package_id"] for pkg in self._server_response_data[request_type]])
self._package_manager.setPackagesWithUpdate(packages)
packages = self._server_response_data[request_type]
# self._package_manager.setPackagesWithUpdate(dict(zip([p['package_id'] for p in packages], [p for p in packages])))
self.metadataChanged.emit()