Netprefs: Remove "/dev/net/" from displayed interface names

The name overlaps the status string when it's too long, so keep it
shorter.
This commit is contained in:
Adrien Destugues 2014-11-10 13:15:13 +01:00
parent 396d0801a4
commit 43b65f2eac

View File

@ -182,7 +182,11 @@ InterfaceListItem::DrawItem(BView* owner, BRect /*bounds*/, bool complete)
} }
list->SetFont(be_bold_font); list->SetFont(be_bold_font);
list->DrawString(Name(), namePt);
BString name = Name();
name.RemoveFirst("/dev/net/");
list->DrawString(name, namePt);
list->SetFont(be_plain_font); list->SetFont(be_plain_font);
list->DrawString(interfaceState, statePt); list->DrawString(interfaceState, statePt);