mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Cleanup plugin browser dialog creation - CURA-4568
This commit is contained in:
parent
bd5e4f9a51
commit
9a7fa67da7
1 changed files with 1 additions and 11 deletions
|
@ -38,8 +38,6 @@ class PluginBrowser(QObject, Extension):
|
||||||
self._plugins_metadata = []
|
self._plugins_metadata = []
|
||||||
self._plugins_model = None
|
self._plugins_model = None
|
||||||
|
|
||||||
self._qml_component = None
|
|
||||||
self._qml_context = None
|
|
||||||
self._dialog = None
|
self._dialog = None
|
||||||
self._download_progress = 0
|
self._download_progress = 0
|
||||||
|
|
||||||
|
@ -110,16 +108,8 @@ class PluginBrowser(QObject, Extension):
|
||||||
|
|
||||||
def _createDialog(self, qml_name):
|
def _createDialog(self, qml_name):
|
||||||
Logger.log("d", "Creating dialog [%s]", qml_name)
|
Logger.log("d", "Creating dialog [%s]", qml_name)
|
||||||
|
|
||||||
path = os.path.join(PluginRegistry.getInstance().getPluginPath(self.getPluginId()), qml_name)
|
path = os.path.join(PluginRegistry.getInstance().getPluginPath(self.getPluginId()), qml_name)
|
||||||
dialog = Application.getInstance().createQmlComponent(path, {
|
dialog = Application.getInstance().createQmlComponent(path, {"manager": self})
|
||||||
"manager": self
|
|
||||||
})
|
|
||||||
|
|
||||||
if dialog is None:
|
|
||||||
Logger.log("e", "QQmlComponent status %s", self._qml_component.status())
|
|
||||||
Logger.log("e", "QQmlComponent errorString %s", self._qml_component.errorString())
|
|
||||||
|
|
||||||
return dialog
|
return dialog
|
||||||
|
|
||||||
def setIsDownloading(self, is_downloading):
|
def setIsDownloading(self, is_downloading):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue