From dd7bfa21e987510de1539d71cc68ea93618080b7 Mon Sep 17 00:00:00 2001 From: tao wang Date: Thu, 31 Aug 2023 18:21:00 +0800 Subject: [PATCH] ENH:disable combobox when sending file jira:[STUDIO-3243] Change-Id: I90aa7a639bf729dba462c957bdbda7ba4af08266 --- src/slic3r/GUI/SendToPrinter.cpp | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/slic3r/GUI/SendToPrinter.cpp b/src/slic3r/GUI/SendToPrinter.cpp index ebe312d9d..9eae2f396 100644 --- a/src/slic3r/GUI/SendToPrinter.cpp +++ b/src/slic3r/GUI/SendToPrinter.cpp @@ -579,25 +579,27 @@ void SendToPrinterDialog::show_print_failed_info(bool show, int code, wxString d void SendToPrinterDialog::prepare_mode() { - m_is_in_sending_mode = false; - if (m_send_job) { - m_send_job->join(); - } + m_is_in_sending_mode = false; + m_comboBox_printer->Enable(); + if (m_send_job) { + m_send_job->join(); + } - if (wxIsBusy()) - wxEndBusyCursor(); - Enable_Send_Button(true); + if (wxIsBusy()) + wxEndBusyCursor(); + Enable_Send_Button(true); show_print_failed_info(false); m_status_bar->reset(); - if (m_simplebook->GetSelection() != 0) { - m_simplebook->SetSelection(0); - } + if (m_simplebook->GetSelection() != 0) { + m_simplebook->SetSelection(0); + } } 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; } - show_status(PrintDialogStatus::PrintStatusReadingFinished); + if (!m_is_in_sending_mode) { + show_status(PrintDialogStatus::PrintStatusReadingFinished); + return; + } } void SendToPrinterDialog::Enable_Refresh_Button(bool en)