mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Fix MyPy issues
This commit is contained in:
parent
9a3ff527ac
commit
8f46c02e5d
1 changed files with 4 additions and 3 deletions
|
@ -151,10 +151,11 @@ class LocalClusterOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||||
## Shows a dialog allowing the user to select which printer in a group to send a job to.
|
## Shows a dialog allowing the user to select which printer in a group to send a job to.
|
||||||
def _showPrinterSelectionDialog(self) -> None:
|
def _showPrinterSelectionDialog(self) -> None:
|
||||||
if not self._printer_select_dialog:
|
if not self._printer_select_dialog:
|
||||||
path = os.path.join(CuraApplication.getInstance().getPluginRegistry().getPluginPath("UM3NetworkPrinting"),
|
plugin_path = CuraApplication.getInstance().getPluginRegistry().getPluginPath("UM3NetworkPrinting") or ""
|
||||||
"resources", "qml", "PrintWindow.qml")
|
path = os.path.join(plugin_path, "resources", "qml", "PrintWindow.qml")
|
||||||
self._printer_select_dialog = CuraApplication.getInstance().createQmlComponent(path, {"OutputDevice": self})
|
self._printer_select_dialog = CuraApplication.getInstance().createQmlComponent(path, {"OutputDevice": self})
|
||||||
self._printer_select_dialog.show()
|
if self._printer_select_dialog is not None:
|
||||||
|
self._printer_select_dialog.show()
|
||||||
|
|
||||||
## Upload the print job to the group.
|
## Upload the print job to the group.
|
||||||
def _startPrintJobUpload(self, unique_name: str = None) -> None:
|
def _startPrintJobUpload(self, unique_name: str = None) -> None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue