FIX: try optimize the material settings refreshing

jira: [STUDIO-11086]
Change-Id: I610304a7aa4a1b23e1e3fe7def157a93f5ae19af
(cherry picked from commit 6eff893be393ad73a74bb41414c0d1aab4d4c6f3)
This commit is contained in:
xin.zhang
2025-03-23 15:10:21 +08:00
committed by Noisyfox
parent 03526dfdd8
commit 98c82d6be6

View File

@@ -424,8 +424,6 @@ void AMSMaterialsSetting::update()
void AMSMaterialsSetting::enable_confirm_button(bool en)
{
m_tip_readonly->SetLabelText(wxEmptyString);
if (!en) {
m_button_confirm->Show(obj->is_support_filament_setting_inprinting);
}
@@ -434,6 +432,7 @@ void AMSMaterialsSetting::enable_confirm_button(bool en)
}
if (!m_is_third) {
m_tip_readonly->SetLabelText(wxEmptyString);
m_tip_readonly->Hide();
}
else {
@@ -443,6 +442,8 @@ void AMSMaterialsSetting::enable_confirm_button(bool en)
} else {
m_tip_readonly->SetLabelText(_L("Setting Virtual slot information while printing is not supported"));
}
} else {
m_tip_readonly->SetLabelText(wxEmptyString);
}
m_tip_readonly->Wrap(FromDIP(380));