Fix handling of offline interface status in NetworkDevices widget

This commit is contained in:
Arindy 2025-12-28 11:35:08 +01:00
parent 44689ada2c
commit 0b992a6a11

View File

@ -30,7 +30,7 @@ func createNetworkDevicesList(ctx context.Context, _ terminalapi.Terminal, _ int
list.Reset()
for _, iface := range sortedInterfaces(interfaces) {
status := cell.ColorGreen
if iface == "offline" {
if iface == "_offline_" {
status = cell.ColorGray
}
if err := list.Write(fmt.Sprintf("=== %s ===\n", iface)); err != nil {