mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Give no address instead of a wrong address if unknown
Contributes to issue CURA-3161.
This commit is contained in:
parent
e37d8b949e
commit
27c30006da
@ -225,7 +225,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
## The IP address of the printer.
|
||||
@pyqtProperty(str, constant = True)
|
||||
def address(self):
|
||||
return self._properties.get(b"address", b"0.0.0.0").decode("utf-8")
|
||||
return self._properties.get(b"address", b"").decode("utf-8")
|
||||
|
||||
## Name of the printer (as returned from the zeroConf properties)
|
||||
@pyqtProperty(str, constant = True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user