mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
fixed exceptions caused by disconnecting printer
This commit is contained in:
parent
f12f20afee
commit
ec1500860f
1 changed files with 3 additions and 2 deletions
|
@ -288,6 +288,7 @@ class PrinterApplication(QtApplication):
|
||||||
self.outputDevicesChanged.emit()
|
self.outputDevicesChanged.emit()
|
||||||
|
|
||||||
def removeOutputDevice(self, id):
|
def removeOutputDevice(self, id):
|
||||||
|
if id in self._output_devices:
|
||||||
del self._output_devices[id]
|
del self._output_devices[id]
|
||||||
self.outputDevicesChanged.emit()
|
self.outputDevicesChanged.emit()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue