FIX: try optimize the material settings refreshing
jira: [STUDIO-11086] Change-Id: I610304a7aa4a1b23e1e3fe7def157a93f5ae19af
This commit is contained in:
parent
9a6a6d1b39
commit
6eff893be3
|
@ -424,8 +424,6 @@ void AMSMaterialsSetting::update()
|
||||||
|
|
||||||
void AMSMaterialsSetting::enable_confirm_button(bool en)
|
void AMSMaterialsSetting::enable_confirm_button(bool en)
|
||||||
{
|
{
|
||||||
m_tip_readonly->SetLabelText(wxEmptyString);
|
|
||||||
|
|
||||||
if (!en) {
|
if (!en) {
|
||||||
m_button_confirm->Show(obj->is_support_filament_setting_inprinting);
|
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) {
|
if (!m_is_third) {
|
||||||
|
m_tip_readonly->SetLabelText(wxEmptyString);
|
||||||
m_tip_readonly->Hide();
|
m_tip_readonly->Hide();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -443,6 +442,8 @@ void AMSMaterialsSetting::enable_confirm_button(bool en)
|
||||||
} else {
|
} else {
|
||||||
m_tip_readonly->SetLabelText(_L("Setting Virtual slot information while printing is not supported"));
|
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));
|
m_tip_readonly->Wrap(FromDIP(380));
|
||||||
|
|
Loading…
Reference in New Issue