mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Merge branch 'master' of github.com:Ultimaker/JediWifiPrintingPlugin
This commit is contained in:
commit
c4d197ea8a
2 changed files with 12 additions and 13 deletions
|
|
@ -21,7 +21,7 @@ class DiscoverUM3Action(MachineAction):
|
|||
|
||||
self._network_plugin = None
|
||||
|
||||
self._context = None
|
||||
self._additional_components_context = None
|
||||
self._additional_component = None
|
||||
self._additional_components_view = None
|
||||
|
||||
|
|
@ -110,9 +110,9 @@ class DiscoverUM3Action(MachineAction):
|
|||
self._additional_component = QQmlComponent(Application.getInstance()._engine, path)
|
||||
|
||||
# We need access to engine (although technically we can't)
|
||||
self._context = QQmlContext(Application.getInstance()._engine.rootContext())
|
||||
self._context.setContextProperty("manager", self)
|
||||
self._additional_components_view = self._additional_component.create(self._context)
|
||||
self._additional_components_context = QQmlContext(Application.getInstance()._engine.rootContext())
|
||||
self._additional_components_context.setContextProperty("manager", self)
|
||||
self._additional_components_view = self._additional_component.create(self._additional_components_context)
|
||||
|
||||
Application.getInstance().addAdditionalComponent("monitorButtons", self._additional_components_view.findChild(QObject, "networkPrinterConnectButton"))
|
||||
Application.getInstance().addAdditionalComponent("machinesDetailPane", self._additional_components_view.findChild(QObject, "networkPrinterConnectionInfo"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue