mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-23 20:22:04 +00: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:
@@ -177,11 +177,9 @@ void PrinterMsgPanel::SetLabelList(const std::vector<wxString> &texts, const wxC
|
||||
return;
|
||||
|
||||
m_last_texts = texts;
|
||||
|
||||
m_labels.clear();
|
||||
m_sizer->Clear(true);
|
||||
|
||||
std::set<wxString> unique_texts;
|
||||
std::set<wxString> unique_texts;
|
||||
|
||||
for (const wxString &text : texts) {
|
||||
if (text.empty()) {
|
||||
@@ -226,6 +224,15 @@ wxString PrinterMsgPanel::GetLabel() {
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
|
||||
std::vector<wxString> PrinterMsgPanel::GetLabelList() {
|
||||
if (m_last_texts.empty())
|
||||
wxLogDebug(_L("No labels are currently stored."));
|
||||
return m_last_texts;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user