FIX: Prevent refresh during connection

jira: none
Change-Id: I84fda87d4b62d6cf2b22614336336aae5229feca
(cherry picked from commit 920bb3da0160c63cee66958a7b59d3ae5314ca88)
This commit is contained in:
haolin.tian
2025-10-13 21:01:01 +08:00
committed by Noisyfox
parent ca7902a091
commit 4480370fe1

View File

@@ -1376,6 +1376,8 @@ void SendToPrinterDialog::show_status(PrintDialogStatus status, std::vector<wxSt
{ {
if (m_print_status != status) if (m_print_status != status)
BOOST_LOG_TRIVIAL(info) << "select_machine_dialog: show_status = " << status; BOOST_LOG_TRIVIAL(info) << "select_machine_dialog: show_status = " << status;
else
return;
m_print_status = status; m_print_status = status;
// m_comboBox_printer // m_comboBox_printer
@@ -1395,7 +1397,7 @@ void SendToPrinterDialog::show_status(PrintDialogStatus status, std::vector<wxSt
Layout(); Layout();
Enable_Send_Button(false); Enable_Send_Button(false);
Enable_Refresh_Button(true); Enable_Refresh_Button(false);
return; return;
} else if (status == PrintDialogStatus::PrintStatusReconnecting) { } else if (status == PrintDialogStatus::PrintStatusReconnecting) {
@@ -1441,7 +1443,7 @@ void SendToPrinterDialog::show_status(PrintDialogStatus status, std::vector<wxSt
wxString msg_text = _L("Synchronizing device information"); wxString msg_text = _L("Synchronizing device information");
update_print_status_msg(msg_text, false, true); update_print_status_msg(msg_text, false, true);
Enable_Send_Button(false); Enable_Send_Button(false);
Enable_Refresh_Button(true); Enable_Refresh_Button(false);
} }
else if (status == PrintDialogStatus::PrintStatusReadingFinished) { else if (status == PrintDialogStatus::PrintStatusReadingFinished) {