mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 09:56:04 +08:00
Print discovery now lists all found human readable names
CURA-336
This commit is contained in:
parent
16fcf2208b
commit
0cee5b78df
@ -26,7 +26,7 @@ class DiscoverUM3Action(MachineAction):
|
|||||||
@pyqtProperty("QVariantList", notify = printerDetected)
|
@pyqtProperty("QVariantList", notify = printerDetected)
|
||||||
def foundDevices(self):
|
def foundDevices(self):
|
||||||
if self._network_plugin:
|
if self._network_plugin:
|
||||||
|
printers = self._network_plugin.getPrinters()
|
||||||
return list(self._network_plugin.getPrinters().keys())
|
return([printers[printer].getProperties().get(b"name").decode("utf-8") for printer in printers])
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user