mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use plugin Id instead of __file__ for USBPrinting
CURA-6255
This commit is contained in:
parent
dcaa10e409
commit
49b93db6df
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,10 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||
self._firmware_name_requested = False
|
||||
self._firmware_updater = AvrFirmwareUpdater(self)
|
||||
|
||||
self._monitor_view_qml_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "MonitorItem.qml")
|
||||
from .USBPrinterOutputDeviceManager import USBPrinterOutputDeviceManager
|
||||
plugin_id = USBPrinterOutputDeviceManager.getInstance().getPluginId()
|
||||
plugin_path = PluginRegistry.getInstance().getPluginPath(plugin_id)
|
||||
self._monitor_view_qml_path = os.path.join(plugin_path, "MonitorItem.qml")
|
||||
|
||||
CuraApplication.getInstance().getOnExitCallbackManager().addCallback(self._checkActivePrintingUponAppExit)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue