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:
milk authored and Noisyfox committed 2025-09-24 10:00:32 +08:00
1 parent 760eb890bb
commit 7a22989e89
3 files changed
+35 -15

No files matched your search

+10 -3
View File
@@ -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;
}
}
};