FIX:fixed the Chinese profile name will display garbled characters

Change-Id: I61f84b4e89e0ba9c7ceec0d8efb5d17874b498e2
This commit is contained in:
tao wang 2023-05-05 10:29:33 +08:00 committed by Lane.Wei
parent f19c83ce38
commit bbea6f924a

View file

@ -2344,8 +2344,8 @@ void StatusPanel::update_subtask(MachineObject *obj)
if (obj->get_modeltask() && obj->get_modeltask()->design_id > 0) {
if(!m_staticText_profile_value->IsShown()){ m_staticText_profile_value->Show();}
m_staticText_profile_value->SetLabelText(obj->get_modeltask()->profile_name);
if (!m_staticText_profile_value->IsShown()) { m_staticText_profile_value->Show(); }
m_staticText_profile_value->SetLabelText(wxString::FromUTF8(obj->get_modeltask()->profile_name));
}
else {
m_staticText_profile_value->SetLabelText(wxEmptyString);
@ -2392,7 +2392,7 @@ void StatusPanel::update_subtask(MachineObject *obj)
if (obj->get_modeltask() && obj->get_modeltask()->design_id > 0) {
if(!m_staticText_profile_value->IsShown()){ m_staticText_profile_value->Show();}
m_staticText_profile_value->SetLabelText(obj->get_modeltask()->profile_name);
m_staticText_profile_value->SetLabelText(wxString::FromUTF8(obj->get_modeltask()->profile_name));
}
else {
m_staticText_profile_value->SetLabelText(wxEmptyString);