FIX:fixed display errors caused by dynamic thumbnails

jira:[STUDIO-10742]

Change-Id: Ie429a98f79d770e80c07600b0da054feba0ce9bf
This commit is contained in:
tao wang 2025-03-06 23:17:18 +08:00 committed by lane.wei
parent 8da9e674a2
commit 519797ef19
2 changed files with 8 additions and 4 deletions

View File

@ -901,8 +901,10 @@ void AmsMapingPopup::update(MachineObject* obj, const std::vector<FilamentInfo>&
update_title(obj);
/*ext*/
const auto& full_config = wxGetApp().preset_bundle->full_config();
size_t nozzle_nums = full_config.option<ConfigOptionFloatsNullable>("nozzle_diameter")->values.size();
//const auto& full_config = wxGetApp().preset_bundle->full_config();
//size_t nozzle_nums = full_config.option<ConfigOptionFloatsNullable>("nozzle_diameter")->values.size();
size_t nozzle_nums = obj->m_extder_data.total_extder_count;
if (nozzle_nums == 1) {
m_left_marea_panel->Hide();

View File

@ -1273,7 +1273,9 @@ bool SelectMachineDialog::do_ams_mapping(MachineObject *obj_)
get_ams_mapping_result(ams_array, ams_array2, mapping_info);
if (ams_array.empty()) {
reset_ams_material();
updata_thumbnail_data_after_connected_printer(); // FIX:update cur plate thumbnail
if (m_print_type == FROM_NORMAL) {
updata_thumbnail_data_after_connected_printer(); // FIX:update cur plate thumbnail
}
BOOST_LOG_TRIVIAL(info) << "ams_mapping_array=[]";
} else {
sync_ams_mapping_result(m_ams_mapping_result);