preferences/network: Fix status labels for stateful connections
This commit is contained in:
parent
f932d9902f
commit
7424792a9f
@ -304,8 +304,16 @@ InterfaceListItem::_StateText() const
|
||||
{
|
||||
if (fDisabled)
|
||||
return B_TRANSLATE("disabled");
|
||||
if (!fInterface.HasLink())
|
||||
return B_TRANSLATE("no link");
|
||||
|
||||
if (!fInterface.HasLink()) {
|
||||
switch (fType) {
|
||||
case B_NETWORK_INTERFACE_TYPE_VPN:
|
||||
case B_NETWORK_INTERFACE_TYPE_DIAL_UP:
|
||||
return B_TRANSLATE("disconnected");
|
||||
default:
|
||||
return B_TRANSLATE("no link");
|
||||
}
|
||||
}
|
||||
|
||||
// TODO!
|
||||
// } else if ((fSettings->IPAddr(AF_INET).IsEmpty()
|
||||
|
Loading…
Reference in New Issue
Block a user