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:
parent
396d0801a4
commit
43b65f2eac
@ -182,7 +182,11 @@ InterfaceListItem::DrawItem(BView* owner, BRect /*bounds*/, bool complete)
|
||||
}
|
||||
|
||||
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->DrawString(interfaceState, statePt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user