FIX: clean selected machine when connecting failed

Change-Id: I7e4a2bcb055d5a1c0a333fd92179040fb97086f6
This commit is contained in:
Stone Li 2022-11-15 10:04:34 +08:00 committed by Lane.Wei
parent 2659eab268
commit f64b42e3d2
1 changed files with 1 additions and 0 deletions

View File

@ -1685,6 +1685,7 @@ void GUI_App::init_networking_callbacks()
obj->command_get_version();
} else if (state == ConnectStatus::ConnectStatusFailed) {
obj->set_access_code("");
m_device_manager->set_selected_machine("");
wxString text;
if (msg == "5") {
text = wxString::Format(_L("Incorrect password"));