mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Delay using getPluginPath()
until after start up time
CL-1266
This commit is contained in:
parent
58f1c05564
commit
19c6fceb0c
1 changed files with 5 additions and 3 deletions
|
@ -77,13 +77,15 @@ class LegacyUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||
|
||||
self.setIconName("print")
|
||||
|
||||
if PluginRegistry.getInstance() is not None:
|
||||
self._output_controller = LegacyUM3PrinterOutputController(self)
|
||||
|
||||
def _createMonitorViewFromQML(self) -> None:
|
||||
if self._monitor_view_qml_path is None and PluginRegistry.getInstance() is not None:
|
||||
self._monitor_view_qml_path = os.path.join(
|
||||
PluginRegistry.getInstance().getPluginPath("UM3NetworkPrinting"),
|
||||
"resources", "qml", "MonitorStage.qml"
|
||||
)
|
||||
|
||||
self._output_controller = LegacyUM3PrinterOutputController(self)
|
||||
super()._createMonitorViewFromQML()
|
||||
|
||||
def _onAuthenticationStateChanged(self):
|
||||
# We only accept commands if we are authenticated.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue