FIX: fix display error when only ams2 exists
Change-Id: I6993b6681b403094d8ed242fbd3869ad19f834b9
This commit is contained in:
parent
5cedfe2216
commit
d42c8f58df
|
@ -524,8 +524,8 @@ void MachineInfoPanel::update_ams(MachineObject *obj)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
std::string ams_id = "ams/" + std::to_string(ams_index);
|
||||
auto ver_item = obj->new_ver_list.find(ams_id);
|
||||
std::string ams_idx = (boost::format("ams/%1%") % ams_id).str();
|
||||
auto ver_item = obj->new_ver_list.find(ams_idx);
|
||||
|
||||
if (ver_item == obj->new_ver_list.end()) {
|
||||
amspanel->m_ams_new_version_img->Hide();
|
||||
|
|
Loading…
Reference in New Issue