From 342eb0c3868e16ea08fbbc7f00c4efe380731531 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Thu, 13 Jun 2024 16:06:02 +0800 Subject: [PATCH] Reset connection_established_ flag when connection closed --- src/main_window/main_window_callback_func.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main_window/main_window_callback_func.cpp b/src/main_window/main_window_callback_func.cpp index 8b50bdb..0d110bf 100644 --- a/src/main_window/main_window_callback_func.cpp +++ b/src/main_window/main_window_callback_func.cpp @@ -166,6 +166,7 @@ void MainWindow::OnConnectionStatusCb(ConnectionStatus status, main_window->connection_status_str_ = "Closed"; main_window->start_screen_capture_ = false; main_window->start_mouse_control_ = false; + main_window->connection_established_ = false; } else if (ConnectionStatus::IncorrectPassword == status) { main_window->connection_status_str_ = "Incorrect password"; if (main_window->connect_button_pressed_) {