FIX:Access code and ip input and interaction logic

JIRA: STUDIO-3970
Change-Id: If7a33d6a70b09dda9f50d774d6cec732af923e71
This commit is contained in:
hu.wang
2023-09-06 17:09:45 +08:00
committed by Lane.Wei
parent 66242d765a
commit c8cf950155
6 changed files with 144 additions and 55 deletions

View File

@@ -797,7 +797,7 @@ void SendToPrinterDialog::on_ok(wxCommandEvent &event)
enable_prepare_mode = false;
m_send_job->on_check_ip_address_fail([this]() {
m_send_job->on_check_ip_address_fail([this](int result) {
wxCommandEvent* evt = new wxCommandEvent(EVT_CLEAR_IPADDRESS);
wxQueueEvent(this, evt);
wxGetApp().show_ip_address_enter_dialog();
@@ -1042,7 +1042,7 @@ void SendToPrinterDialog::update_show_status()
if (!obj_->is_info_ready()) {
if (is_timeout()) {
(PrintDialogStatus::PrintStatusReadingTimeout);
show_status(PrintDialogStatus::PrintStatusReadingTimeout);
return;
}
else {
@@ -1073,10 +1073,6 @@ void SendToPrinterDialog::update_show_status()
return;
}
if (obj_->dev_ip.empty()) {
show_status(PrintDialogStatus::PrintStatusNotOnTheSameLAN);
return;
}
if (!obj_->is_support_send_to_sdcard) {
show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard);