chatgui: TCP link status via stcp_link_is_ready
This commit is contained in:
1 parent
5d23f461a7
commit
b6f9ebc8a8
1 file changed
+3
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user