Remove unnecessary check for plugins_showcase models creation

Already created in __init__()
This commit is contained in:
Lipu Fei 2018-04-25 16:47:57 +02:00
parent 3ea80c7c7c
commit d79bbe5725

View file

@ -462,9 +462,6 @@ class Toolbox(QObject, Extension):
Logger.log("e", "%s", error["title"])
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._models["plugins_showcase"].setMetadata(self._metadata["plugins_showcase"])
self.metadataChanged.emit()