mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 12:55:53 +08:00
Minor refactor to make code more readable
CURA-336
This commit is contained in:
parent
804ff66c9a
commit
5e51d4d998
@ -30,7 +30,7 @@ class DiscoverUM3Action(MachineAction):
|
|||||||
def foundDevices(self):
|
def foundDevices(self):
|
||||||
if self._network_plugin:
|
if self._network_plugin:
|
||||||
printers = self._network_plugin.getPrinters()
|
printers = self._network_plugin.getPrinters()
|
||||||
return [printers[printer] for printer in printers]
|
return list(printers.values())
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user