mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add check if additional components were successfully created
This commit is contained in:
parent
7da05e0f36
commit
400360cb34
1 changed files with 4 additions and 0 deletions
|
|
@ -112,7 +112,11 @@ class DiscoverUM3Action(MachineAction):
|
||||||
# We need access to engine (although technically we can't)
|
# We need access to engine (although technically we can't)
|
||||||
self.__additional_components_context = QQmlContext(Application.getInstance()._engine.rootContext())
|
self.__additional_components_context = QQmlContext(Application.getInstance()._engine.rootContext())
|
||||||
self.__additional_components_context.setContextProperty("manager", self)
|
self.__additional_components_context.setContextProperty("manager", self)
|
||||||
|
|
||||||
self.__additional_components_view = self.__additional_component.create(self.__additional_components_context)
|
self.__additional_components_view = self.__additional_component.create(self.__additional_components_context)
|
||||||
|
if not self.__additional_components_view:
|
||||||
|
Logger.log("w", "Could not create ui components for UM3.")
|
||||||
|
return
|
||||||
|
|
||||||
Application.getInstance().addAdditionalComponent("monitorButtons", self.__additional_components_view.findChild(QObject, "networkPrinterConnectButton"))
|
Application.getInstance().addAdditionalComponent("monitorButtons", self.__additional_components_view.findChild(QObject, "networkPrinterConnectButton"))
|
||||||
Application.getInstance().addAdditionalComponent("machinesDetailPane", self.__additional_components_view.findChild(QObject, "networkPrinterConnectionInfo"))
|
Application.getInstance().addAdditionalComponent("machinesDetailPane", self.__additional_components_view.findChild(QObject, "networkPrinterConnectionInfo"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue