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

@ -580,6 +580,7 @@ void SendToPrinterDialog::show_print_failed_info(bool show, int code, wxString d
void SendToPrinterDialog::prepare_mode()
{
m_is_in_sending_mode = false;
m_comboBox_printer->Enable();
if (m_send_job) {
m_send_job->join();
}
@ -598,6 +599,7 @@ void SendToPrinterDialog::prepare_mode()
void SendToPrinterDialog::sending_mode()
{
m_is_in_sending_mode = true;
m_comboBox_printer->Disable();
if (m_simplebook->GetSelection() != 1){
m_simplebook->SetSelection(1);
Layout();
@ -1081,7 +1083,10 @@ void SendToPrinterDialog::update_show_status()
return;
}
if (!m_is_in_sending_mode) {
show_status(PrintDialogStatus::PrintStatusReadingFinished);
return;
}
}
void SendToPrinterDialog::Enable_Refresh_Button(bool en)