mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: Prevent refresh during connection
jira: none Change-Id: I84fda87d4b62d6cf2b22614336336aae5229feca (cherry picked from commit 920bb3da0160c63cee66958a7b59d3ae5314ca88)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user