mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:36:01 +08:00
Results in printer discovery are sorted again
CL-541
This commit is contained in:
parent
a8e71cf50c
commit
3f1167a7d2
@ -93,7 +93,7 @@ class DiscoverUM3Action(MachineAction):
|
|||||||
printers = list(self._network_plugin.getDiscoveredDevices().values())
|
printers = list(self._network_plugin.getDiscoveredDevices().values())
|
||||||
# TODO; There are still some testing printers that don't have a correct printer type, so don't filter out unkown ones just yet.
|
# TODO; There are still some testing printers that don't have a correct printer type, so don't filter out unkown ones just yet.
|
||||||
#printers = [printer for printer in printers if printer.printerType == global_printer_type or printer.printerType == "unknown"]
|
#printers = [printer for printer in printers if printer.printerType == global_printer_type or printer.printerType == "unknown"]
|
||||||
#printers.sort(key = lambda k: k.name)
|
printers.sort(key = lambda k: k.name)
|
||||||
return printers
|
return printers
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user