mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 20:15:54 +08:00
Devices are now correctly removed
CURA-49
This commit is contained in:
parent
f9a1b75c7c
commit
e073860389
@ -56,7 +56,7 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin, SignalEmitter):
|
|||||||
if self._printers[key].isConnected():
|
if self._printers[key].isConnected():
|
||||||
self.getOutputDeviceManager().addOutputDevice(self._printers[key])
|
self.getOutputDeviceManager().addOutputDevice(self._printers[key])
|
||||||
else:
|
else:
|
||||||
self.getOutputDeviceManager().removeOutputDevice(self._printers[key])
|
self.getOutputDeviceManager().removeOutputDevice(key)
|
||||||
|
|
||||||
## Handler for zeroConf detection
|
## Handler for zeroConf detection
|
||||||
def _onServiceChanged(self, zeroconf, service_type, name, state_change):
|
def _onServiceChanged(self, zeroconf, service_type, name, state_change):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user