Reset connection_established_ flag when connection closed

This commit is contained in:
dijunkun
2024-06-13 16:06:02 +08:00
parent 52c7099dbe
commit 342eb0c386

View File

@@ -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_) {