ENH:optimize the detection of FTP connection status

Change-Id: I9e7095959f3933e5fa22a0b274d221b1c2c42878
This commit is contained in:
tao wang authored and Lane.Wei committed 2023-02-24 09:23:57 +08:00
1 parent 9b59fb4cbc
commit 875c851b61
3 files changed
+26 -25

No files matched your search

+4 -1
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; }
});