Change Only_List_USB

Apply Sovengers so more Macusers can print over USB as mentioned in https://community.ultimaker.com/topic/42417-fix-for-connecting-creality-ender-3-neo-to-mac-via-usb/
This commit is contained in:
MariMakes 2023-01-04 10:15:27 +01:00
parent 5c65ba5058
commit 6def3dcb5e

View file

@ -83,7 +83,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin):
if container_stack.getMetaDataEntry("supports_usb_connection"): if container_stack.getMetaDataEntry("supports_usb_connection"):
machine_file_formats = [file_type.strip() for file_type in container_stack.getMetaDataEntry("file_formats").split(";")] machine_file_formats = [file_type.strip() for file_type in container_stack.getMetaDataEntry("file_formats").split(";")]
if "text/x-gcode" in machine_file_formats: if "text/x-gcode" in machine_file_formats:
port_list = self.getSerialPortList(only_list_usb=True) port_list = self.getSerialPortList(only_list_usb=False)
self._addRemovePorts(port_list) self._addRemovePorts(port_list)
time.sleep(5) time.sleep(5)