mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Print discovery now lists all found human readable names
CURA-336
This commit is contained in:
parent
16fcf2208b
commit
0cee5b78df
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue