ENH:disable combobox when sending file

jira:[STUDIO-3243]

Change-Id: I90aa7a639bf729dba462c957bdbda7ba4af08266
This commit is contained in:
tao wang 2023-08-31 18:21:00 +08:00 committed by Lane.Wei
parent db6bfca564
commit dd7bfa21e9
1 changed files with 16 additions and 11 deletions

View File

@ -579,25 +579,27 @@ void SendToPrinterDialog::show_print_failed_info(bool show, int code, wxString d
void SendToPrinterDialog::prepare_mode() void SendToPrinterDialog::prepare_mode()
{ {
m_is_in_sending_mode = false; m_is_in_sending_mode = false;
if (m_send_job) { m_comboBox_printer->Enable();
m_send_job->join(); if (m_send_job) {
} m_send_job->join();
}
if (wxIsBusy()) if (wxIsBusy())
wxEndBusyCursor(); wxEndBusyCursor();
Enable_Send_Button(true); Enable_Send_Button(true);
show_print_failed_info(false); show_print_failed_info(false);
m_status_bar->reset(); m_status_bar->reset();
if (m_simplebook->GetSelection() != 0) { if (m_simplebook->GetSelection() != 0) {
m_simplebook->SetSelection(0); m_simplebook->SetSelection(0);
} }
} }
void SendToPrinterDialog::sending_mode() void SendToPrinterDialog::sending_mode()
{ {
m_is_in_sending_mode = true; m_is_in_sending_mode = true;
m_comboBox_printer->Disable();
if (m_simplebook->GetSelection() != 1){ if (m_simplebook->GetSelection() != 1){
m_simplebook->SetSelection(1); m_simplebook->SetSelection(1);
Layout(); Layout();
@ -1081,7 +1083,10 @@ void SendToPrinterDialog::update_show_status()
return; return;
} }
show_status(PrintDialogStatus::PrintStatusReadingFinished); if (!m_is_in_sending_mode) {
show_status(PrintDialogStatus::PrintStatusReadingFinished);
return;
}
} }
void SendToPrinterDialog::Enable_Refresh_Button(bool en) void SendToPrinterDialog::Enable_Refresh_Button(bool en)