FIX:Fix incomplete prompt message display

jira:[STUDIO-12797]

Change-Id: Iefdcf23477b183e7c208092d9da347ee5669f8b3
(cherry picked from commit 081dfec94a95797847f67783f273632a78c3ead2)
This commit is contained in:
milk 2025-07-02 11:16:54 +08:00 committed by Noisyfox
parent 4deb47554a
commit 4bb326db16
3 changed files with 12 additions and 5 deletions

View file

@ -1422,8 +1422,12 @@ void SelectMachineDialog::prepare(int print_plate_idx)
void SelectMachineDialog::update_print_status_msg()
{
m_statictext_ams_msg->UpdateInfos(m_pre_print_checker.filamentList);
m_text_printer_msg->UpdateInfos(m_pre_print_checker.printerList);
bool is_ams_update = m_statictext_ams_msg->UpdateInfos(m_pre_print_checker.filamentList);
bool is_printer_update = m_text_printer_msg->UpdateInfos(m_pre_print_checker.printerList);
if (is_printer_update || is_ams_update) {
Layout();
}
}
void SelectMachineDialog::update_print_error_info(int code, std::string msg, std::string extra)