mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue