FIX: only single extruder printer display the icon

of FilamentSettingDialog
jira: 7714

Change-Id: I5d6eca802b9be1fcdeaa28d9e4fbc4862d8c8378
This commit is contained in:
zhimin.zeng 2024-08-02 14:48:56 +08:00 committed by lane.wei
parent 9b510c0aeb
commit b7176bfdd1
1 changed files with 6 additions and 6 deletions

View File

@ -773,12 +773,12 @@ void PartPlate::render_icons(bool bottom, bool only_body, int hover_id)
}
int extruder_count = wxGetApp().preset_bundle->get_printer_extruder_count();
if (extruder_count == 2) {
if (hover_id == PLATE_FILAMENT_MAP_ID)
render_icon_texture(m_partplate_list->m_plate_filament_map_icon, m_partplate_list->m_plate_set_filament_map_hovered_texture);
else
render_icon_texture(m_partplate_list->m_plate_filament_map_icon, m_partplate_list->m_plate_set_filament_map_texture);
}
if (extruder_count == 2) {
if (hover_id == PLATE_FILAMENT_MAP_ID)
render_icon_texture(m_partplate_list->m_plate_filament_map_icon, m_partplate_list->m_plate_set_filament_map_hovered_texture);
else
render_icon_texture(m_partplate_list->m_plate_filament_map_icon, m_partplate_list->m_plate_set_filament_map_texture);
}
if (hover_id == PLATE_NAME_ID)
render_icon_texture(m_plate_name_edit_icon, m_partplate_list->m_plate_name_edit_hovered_texture);