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:
Augustin Cavalier
2019-11-23 19:25:00 -05:00
parent a3dc96a3a2
commit 5de2f989bc
+3 -12
View File
@@ -203,18 +203,9 @@ InterfaceView::_Update(bool updateWirelessNetworks)
bool isWireless = device.IsWireless();
bool disabled = (fInterface.Flags() & IFF_UP) == 0;
if (fInterface.HasLink()) {
if (isWireless) {
// TODO!
BString network = "---";
network.Prepend(" (");
network.Prepend(B_TRANSLATE("connected"));
network.Append(")");
fStatusField->SetText(network.String());
} else {
fStatusField->SetText(B_TRANSLATE("connected"));
}
} else
if (fInterface.HasLink())
fStatusField->SetText(B_TRANSLATE("connected"));
else
fStatusField->SetText(B_TRANSLATE("disconnected"));
BNetworkAddress hardwareAddress;