chatgui: TCP link status via stcp_link_is_ready

This commit is contained in:
evgeny committed 2026-08-03 21:04:46 +03:00
1 parent 5d23f461a7
commit b6f9ebc8a8
1 file changed
+3
+3
View File
@@ -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("<span style='color:%1;'>●</span> %2:%3:%4")
.arg(linkColor, proto, addrStr(a.addr.constData(), a.family)).arg(a.port));