This commit is contained in:
2025-04-17 18:28:35 -05:00
parent fa4bbbde0c
commit a728dc2c15
5 changed files with 19 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ void ChatClient::run() {
ImGui::InputText("Server Address: ", &addr);
if(cm->isRunning()) {
if(cm->isRunning() && cm->isConnected()) {
if(ImGui::Button("Disconnect") && cm->isRunning()) {
cm->stopClient();