Network: Do not default to Wi-Fi icons in the Interfaces preflet.

At least TUN/TAP don't appear with the "wireless" icon anymore.
This commit is contained in:
Augustin Cavalier 2023-12-23 22:36:51 -05:00
parent 094f638456
commit 0387c6accb

View File

@ -171,8 +171,7 @@ InterfaceListItem::ConfigurationUpdated(const BMessage& message)
void
InterfaceListItem::_Init()
{
switch(fType) {
default:
switch (fType) {
case B_NETWORK_INTERFACE_TYPE_WIFI:
_PopulateBitmaps("wifi");
break;
@ -185,6 +184,9 @@ InterfaceListItem::_Init()
case B_NETWORK_INTERFACE_TYPE_DIAL_UP:
_PopulateBitmaps("dialup");
break;
default:
_PopulateBitmaps(NULL);
break;
}
}