ENH:optimize the detection of FTP connection status

Change-Id: I9e7095959f3933e5fa22a0b274d221b1c2c42878
This commit is contained in:
tao wang 2023-02-17 17:30:17 +08:00 committed by Lane.Wei
parent 9b59fb4cbc
commit 875c851b61
3 changed files with 26 additions and 25 deletions

View file

@ -751,8 +751,11 @@ void SelectMachinePopup::update_user_devices()
}
op->Bind(EVT_UNBIND_MACHINE, [this, dev, mobj](wxCommandEvent& e) {
dev->set_selected_machine("");
if (mobj)
if (mobj) {
mobj->set_access_code("");
mobj->set_user_access_code("");
}
MessageDialog msg_wingow(nullptr, _L("Log out successful."), "", wxAPPLY | wxOK);
if (msg_wingow.ShowModal() == wxOK) { return; }
});