Merge pull request #2107 from fieldOfView/feature_pyserial_usb_detection

Use pyserial to list serial ports
This commit is contained in:
Jaime van Kessel 2017-07-27 09:31:35 +02:00 committed by GitHub
commit e636dbdd10
2 changed files with 10 additions and 18 deletions

View file

@ -91,6 +91,8 @@ class MachineManager(QObject):
self._printer_output_devices = []
Application.getInstance().getOutputDeviceManager().outputDevicesChanged.connect(self._onOutputDevicesChanged)
# There might already be some output devices by the time the signal is connected
self._onOutputDevicesChanged()
if active_machine_id != "" and ContainerRegistry.getInstance().findContainerStacks(id = active_machine_id):
# An active machine was saved, so restore it.