mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-21 20:12:16 -07:00
ENH:Fix incomplete display of the printer block prompt when entering the print submission screen for the first time
jira:[STUDIO-12254] Change-Id: I642e6a39f063c65fb9d61e8d589d2a326917d370 (cherry picked from commit c0ac52cb58cffcb80db94e8985da94ff1c7add2d)
This commit is contained in:
parent
760eb890bb
commit
7a22989e89
3 changed files with 35 additions and 15 deletions
|
|
@ -1433,13 +1433,19 @@ void SelectMachineDialog::update_ams_status_msg(vector<wxString> msg, bool is_er
|
|||
}
|
||||
}
|
||||
else {
|
||||
if (is_single)
|
||||
m_statictext_ams_msg->SetLabelList({ msg[0] }, colour);
|
||||
else {
|
||||
m_statictext_ams_msg->SetLabelList(msg, colour);
|
||||
m_statictext_ams_msg->Show();
|
||||
}
|
||||
if (m_statictext_ams_msg->GetLabelList() != msg) {
|
||||
vector<wxString> TempMsg = {};
|
||||
|
||||
if (is_single)
|
||||
TempMsg = {msg[0]};
|
||||
else
|
||||
TempMsg = msg;
|
||||
|
||||
m_statictext_ams_msg->SetLabelList(TempMsg, colour);
|
||||
m_statictext_ams_msg->Show();
|
||||
Layout();
|
||||
Fit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1457,12 +1463,19 @@ void SelectMachineDialog::update_priner_status_msg(vector<wxString> msg, bool is
|
|||
}
|
||||
}
|
||||
else {
|
||||
if (is_single)
|
||||
m_text_printer_msg->SetLabelList({msg[0]}, colour);
|
||||
else {
|
||||
m_text_printer_msg->SetLabelList(msg, colour);
|
||||
if (m_text_printer_msg->GetLabelList() != msg) {
|
||||
vector<wxString> TempMsg = {};
|
||||
|
||||
if (is_single)
|
||||
TempMsg = {msg[0]};
|
||||
else
|
||||
TempMsg = msg;
|
||||
|
||||
m_text_printer_msg->SetLabelList(TempMsg, colour);
|
||||
m_text_printer_msg->Show();
|
||||
}
|
||||
Layout();
|
||||
Fit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue