Skip to content

Commit

Permalink
Netprefs: Remove "/dev/net/" from displayed interface names
Browse files Browse the repository at this point in the history
The name overlaps the status string when it's too long, so keep it
shorter.
  • Loading branch information
pulkomandy committed Nov 10, 2014
1 parent 396d080 commit 43b65f2
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -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);

Expand Down

0 comments on commit 43b65f2

Please sign in to comment.