From 194709e3e04e33a1b08f3be8788414a3a4bf027a Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 16 Apr 2024 11:23:41 +0200 Subject: [PATCH] Close connection popup on server disconnect --- client/scenes/lobby_gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index e0ab71a4..d4f00fc9 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -88,6 +88,11 @@ void scenes::lobby::gui_connecting() status = async_session.get_progress(); else if (async_error) status = *async_error; + else + { + ImGui::CloseCurrentPopup(); + return; + } std::string button_label;