ENH:disable switching printers when sending printing

Change-Id: I9004f3de4f0968cc659a769970ff20c1e7f6f0be
This commit is contained in:
tao wang 2023-03-16 11:33:46 +08:00 committed by Lane.Wei
parent 47c04e75a7
commit 03819e6f86
3 changed files with 38 additions and 5 deletions

View file

@ -1490,6 +1490,9 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
void SelectMachineDialog::prepare_mode()
{
// disable combobox
m_comboBox_printer->Enable();
m_is_in_sending_mode = false;
if (m_print_job) {
m_print_job->join();
@ -1510,6 +1513,9 @@ void SelectMachineDialog::prepare_mode()
void SelectMachineDialog::sending_mode()
{
// disable combobox
m_comboBox_printer->Disable();
m_is_in_sending_mode = true;
if (m_simplebook->GetSelection() != 1){
m_simplebook->SetSelection(1);