mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 09:14:24 +08:00
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:
parent
d9f77d7ffd
commit
e0754c7015
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user