[fix] show connection status windows when connection status changed

This commit is contained in:
dijunkun
2024-07-24 16:27:58 +08:00
parent a99a4230af
commit b9c5db41ab
3 changed files with 10 additions and 7 deletions

View File

@@ -174,6 +174,7 @@ void Render::OnSignalStatusCb(SignalStatus status, void *user_data) {
void Render::OnConnectionStatusCb(ConnectionStatus status, void *user_data) {
Render *render = (Render *)user_data;
render->connection_status_ = status;
render->show_connection_status_window_ = true;
if (ConnectionStatus::Connecting == status) {
render->connection_status_str_ = "Connecting";
} else if (ConnectionStatus::Connected == status) {