daemon: apply wireless link label even for 0 to force gui update for now

This commit is contained in:
Blake Harnden 2022-04-02 22:08:59 -07:00
parent 42cd1a1019
commit 543e9982c0

View file

@ -182,10 +182,7 @@ class WirelessNode(CoreNetworkBase):
iface.set_config() iface.set_config()
iface.name, iface.localname = name, localname iface.name, iface.localname = name, localname
if options1 == options2: if options1 == options2:
if options1.is_clear(): label = f"{options1.loss:.2f}%/{options1.delay}us"
label = ""
else:
label = f"{options1.loss:.2f}%/{options1.delay}us"
else: else:
label = ( label = (
f"({options1.loss:.2f}%/{options1.delay}us) " f"({options1.loss:.2f}%/{options1.delay}us) "