mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:56:05 +08:00
Remove unnecessary check for plugins_showcase models creation
Already created in __init__()
This commit is contained in:
parent
3ea80c7c7c
commit
d79bbe5725
@ -462,9 +462,6 @@ class Toolbox(QObject, Extension):
|
|||||||
Logger.log("e", "%s", error["title"])
|
Logger.log("e", "%s", error["title"])
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create packages model with all packages:
|
|
||||||
if not self._models["plugins_showcase"]:
|
|
||||||
self._models["plugins_showcase"] = PackagesModel()
|
|
||||||
self._metadata["plugins_showcase"] = json_data["data"]
|
self._metadata["plugins_showcase"] = json_data["data"]
|
||||||
self._models["plugins_showcase"].setMetadata(self._metadata["plugins_showcase"])
|
self._models["plugins_showcase"].setMetadata(self._metadata["plugins_showcase"])
|
||||||
self.metadataChanged.emit()
|
self.metadataChanged.emit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user