[fix] fix connection status display

This commit is contained in:
dijunkun
2024-08-20 10:21:34 +08:00
parent 35af5aab43
commit def7025abf
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ int Render::ConnectionStatusWindow() {
ImGui::SetCursorPosY(connection_status_window_height_ * 2 / 3); ImGui::SetCursorPosY(connection_status_window_height_ * 2 / 3);
} else if (ConnectionStatus::Connected == connection_status_) { } else if (ConnectionStatus::Connected == connection_status_) {
text = localization::p2p_connected[localization_language_index_]; text = localization::p2p_connected[localization_language_index_];
show_connection_status_window_ = false; // show_connection_status_window_ = false;
} else if (ConnectionStatus::Disconnected == connection_status_) { } else if (ConnectionStatus::Disconnected == connection_status_) {
text = localization::p2p_disconnected[localization_language_index_]; text = localization::p2p_disconnected[localization_language_index_];
ImGui::SetCursorPosX(connection_status_window_width_ * 3 / 7); ImGui::SetCursorPosX(connection_status_window_width_ * 3 / 7);