mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove unused environment variable
This commit is contained in:
parent
1bc764f019
commit
6054473036
1 changed files with 2 additions and 3 deletions
|
@ -84,9 +84,8 @@ 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:
|
||||||
# This is a fix for connecting tty/cu printers on MacOS and Linux
|
# We only limit listing usb on windows is a fix for connecting tty/cu printers on MacOS and Linux
|
||||||
only_list_usb = False if Platform.isOSX() or Platform.isLinux() else True
|
port_list = self.getSerialPortList(only_list_usb=Platform.isWindows())
|
||||||
port_list = self.getSerialPortList(only_list_usb)
|
|
||||||
self._addRemovePorts(port_list)
|
self._addRemovePorts(port_list)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue