Network: Remove TODO and "(---)" in device interface display view.
The current network is already displayed in the next field, so displaying it here would be redundant.
This commit is contained in:
@@ -203,18 +203,9 @@ InterfaceView::_Update(bool updateWirelessNetworks)
|
|||||||
bool isWireless = device.IsWireless();
|
bool isWireless = device.IsWireless();
|
||||||
bool disabled = (fInterface.Flags() & IFF_UP) == 0;
|
bool disabled = (fInterface.Flags() & IFF_UP) == 0;
|
||||||
|
|
||||||
if (fInterface.HasLink()) {
|
if (fInterface.HasLink())
|
||||||
if (isWireless) {
|
fStatusField->SetText(B_TRANSLATE("connected"));
|
||||||
// TODO!
|
else
|
||||||
BString network = "---";
|
|
||||||
network.Prepend(" (");
|
|
||||||
network.Prepend(B_TRANSLATE("connected"));
|
|
||||||
network.Append(")");
|
|
||||||
fStatusField->SetText(network.String());
|
|
||||||
} else {
|
|
||||||
fStatusField->SetText(B_TRANSLATE("connected"));
|
|
||||||
}
|
|
||||||
} else
|
|
||||||
fStatusField->SetText(B_TRANSLATE("disconnected"));
|
fStatusField->SetText(B_TRANSLATE("disconnected"));
|
||||||
|
|
||||||
BNetworkAddress hardwareAddress;
|
BNetworkAddress hardwareAddress;
|
||||||
|
|||||||
Reference in New Issue
Block a user