make the re-dhcp on entry to the network screen a little more discreet

This commit is contained in:
Michael Hudson-Doyle 2019-03-26 10:18:32 +13:00
parent 099e658670
commit b485cf487b
2 changed files with 4 additions and 0 deletions

View File

@ -365,6 +365,8 @@ class NetworkController(BaseController):
if not silent:
dev.set_dhcp_state(v, "PENDING")
self.network_event_receiver.update_link(dev.ifindex)
else:
dev.set_dhcp_state(v, "RECONFIGURE")
dhcp_device_versions.append((dev, v))
if dev.info is None:
continue

View File

@ -209,6 +209,8 @@ class NetworkView(BaseView):
address_info.append((label, s))
elif dev.dhcp_state(v) == "TIMEDOUT":
address_info.append((label, Text(_("timed out"))))
elif dev.dhcp_state(v) == "RECONFIGURE":
address_info.append((label, Text(_("-"))))
else:
address_info.append((
label,