mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
fixed exceptions caused by disconnecting printer
This commit is contained in:
parent
f12f20afee
commit
ec1500860f
@ -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…
x
Reference in New Issue
Block a user