From 0387c6accb2b497b61f0925cc50755fbbd4a68af Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 23 Dec 2023 22:36:51 -0500 Subject: [PATCH] Network: Do not default to Wi-Fi icons in the Interfaces preflet. At least TUN/TAP don't appear with the "wireless" icon anymore. --- src/preferences/network/InterfaceListItem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/preferences/network/InterfaceListItem.cpp b/src/preferences/network/InterfaceListItem.cpp index 61be7df6da..09aedb5623 100644 --- a/src/preferences/network/InterfaceListItem.cpp +++ b/src/preferences/network/InterfaceListItem.cpp @@ -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; } }