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