Updated UX of detected printers

CURA-336
This commit is contained in:
Jaime van Kessel 2016-06-23 14:39:50 +02:00
parent 0cee5b78df
commit e94f94767e
2 changed files with 56 additions and 16 deletions

View file

@ -27,6 +27,6 @@ class DiscoverUM3Action(MachineAction):
def foundDevices(self):
if self._network_plugin:
printers = self._network_plugin.getPrinters()
return([printers[printer].getProperties().get(b"name").decode("utf-8") for printer in printers])
return [printers[printer].getProperties().get(b"name").decode("utf-8") for printer in printers]
else:
return []