Devices are now correctly removed

CURA-49
This commit is contained in:
Jaime van Kessel 2016-04-25 15:21:44 +02:00
parent f9a1b75c7c
commit e073860389

View file

@ -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):