mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Remove unnecessary check for plugins_showcase models creation
Already created in __init__()
This commit is contained in:
parent
3ea80c7c7c
commit
d79bbe5725
1 changed files with 0 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue