Print discovery now lists all found human readable names

CURA-336
This commit is contained in:
Jaime van Kessel 2016-06-23 14:25:46 +02:00
parent 16fcf2208b
commit 0cee5b78df

View file

@ -26,7 +26,7 @@ class DiscoverUM3Action(MachineAction):
@pyqtProperty("QVariantList", notify = printerDetected)
def foundDevices(self):
if self._network_plugin:
return list(self._network_plugin.getPrinters().keys())
printers = self._network_plugin.getPrinters()
return([printers[printer].getProperties().get(b"name").decode("utf-8") for printer in printers])
else:
return []