From b6f9ebc8a8957db85dcba05d032f77a3ad8ec566 Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 3 Aug 2026 21:04:46 +0300 Subject: [PATCH] chatgui: TCP link status via stcp_link_is_ready --- tools/chatgui/src/accountlist.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/chatgui/src/accountlist.cpp b/tools/chatgui/src/accountlist.cpp index 8380e037..2dc1989d 100644 --- a/tools/chatgui/src/accountlist.cpp +++ b/tools/chatgui/src/accountlist.cpp @@ -232,6 +232,9 @@ void AccountList::updateDetailDisplay() { break; } } + if (linkColor == "#9E9E9E" && a.protocol == 2 && conn->transport_link) { + linkColor = stcp_link_is_ready((struct stcp_link*)conn->transport_link) ? "#4CAF50" : "#E53935"; + } } lines.append(QString("● %2:%3:%4") .arg(linkColor, proto, addrStr(a.addr.constData(), a.family)).arg(a.port));