network preflet: On IPv6, show "Automatic" for address mode

* IPv6 is "DHCPv6" or "Router Advertisement". Lets just say
  automatic to not confuse techie people.
This commit is contained in:
Alexander von Gluck IV
2015-02-02 17:17:29 +00:00
parent 048ffc1b1e
commit a6c2b2fa63
@@ -42,8 +42,17 @@ InterfaceAddressView::InterfaceAddressView(int family,
// Create our controls
fModePopUpMenu = new BPopUpMenu("modes");
fModePopUpMenu->AddItem(new BMenuItem(B_TRANSLATE("DHCP"),
new BMessage(M_MODE_AUTO)));
if (fFamily == AF_INET) {
fModePopUpMenu->AddItem(new BMenuItem(B_TRANSLATE("DHCP"),
new BMessage(M_MODE_AUTO)));
}
if (fFamily == AF_INET6) {
// Automatic can be DHCPv6 or Router Advertisements
fModePopUpMenu->AddItem(new BMenuItem(B_TRANSLATE("Automatic"),
new BMessage(M_MODE_AUTO)));
}
fModePopUpMenu->AddItem(new BMenuItem(B_TRANSLATE("Static"),
new BMessage(M_MODE_STATIC)));
fModePopUpMenu->AddSeparatorItem();