Loading
Fix bridge disconnect icon and add OvsBridge support
Bug: Pulling the cable from a bridge slave port left the tray icon stuck on network-wired-activated, because NetworkManager keeps the bridge connection active even after physical link loss. The old code unconditionally set the activated icon for bridge devices. Fix and additions:
- Bridge: now checks
hasEthernetCarrier()before deciding the icon. If no Ethernet device has carrier, falls back tosetDisconnectedIcon()which shows the correct disconnected/available/unavailable icon. - OvsBridge: new handler for
NetworkManager::Device::OvsBridgewith the same carrier-aware logic. Previously OVS bridges always fell through to theelsebranch and always showed the disconnected icon. hasEthernetCarrier(): extracted as a privateconstmethod onConnectionIcon, reused by Bridge, OvsBridge.
Edited by Ivan Perevalov