Fix MyPy issues

This commit is contained in:
ChrisTerBeke 2019-10-25 12:35:03 +02:00
parent 9a3ff527ac
commit 8f46c02e5d

View file

@ -151,9 +151,10 @@ 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})
if self._printer_select_dialog is not None:
self._printer_select_dialog.show() self._printer_select_dialog.show()
## Upload the print job to the group. ## Upload the print job to the group.