mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
All found devices are now listed in the discover action
CURA-336
This commit is contained in:
parent
f199d490bb
commit
9a4fc0345c
3 changed files with 24 additions and 3 deletions
|
@ -67,7 +67,7 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin):
|
|||
if state_change == ServiceStateChange.Added:
|
||||
info = zeroconf.get_service_info(service_type, name)
|
||||
if info:
|
||||
if info.properties.get(b"type", None):
|
||||
if info.properties.get(b"type", None) == b'printer':
|
||||
address = '.'.join(map(lambda n: str(n), info.address))
|
||||
self.addPrinterSignal.emit(str(name), address, info.properties)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue