FIX:fixed the issue of multiple plates object card not flip pages

jira:[STUDIO-9373]

Change-Id: I520b2626da8dc3acc066b2ea26a5f8d3c27f64fb
(cherry picked from commit aee0cb382ba40607c278dbd68e5134fa26a2027c)
This commit is contained in:
tao wang
2025-01-01 17:44:36 +08:00
committed by Noisyfox
parent 569814d77c
commit 7c60219ab1

View File

@@ -4075,8 +4075,7 @@ void SelectMachineDialog::set_default()
set_default_normal(m_plater->get_partplate_list().get_curr_plate()->thumbnail_data);
}
else if (m_print_type == PrintFromType::FROM_SDCARD_VIEW) {
//todo:unify_deal_thumbnail_data(input_data, no_light_data);this include m_print_type = PrintFromType::FROM_SDCARD_VIEW
//and notice update_page_turn_state(true)
update_page_turn_state(true);
set_default_from_sdcard();
}
@@ -4654,21 +4653,21 @@ void SelectMachineDialog::set_default_from_sdcard()
void SelectMachineDialog::update_page_turn_state(bool show)
{
/* m_bitmap_last_plate->Show(show);
m_bitmap_last_plate->Show(show);
m_bitmap_next_plate->Show(show);
if (show) {
if (m_print_plate_idx <= 0) { m_bitmap_last_plate->Hide(); }
else { m_bitmap_last_plate->Show(); }
if (m_print_plate_idx <= 0) { m_bitmap_last_plate->Disable(); }
else { m_bitmap_last_plate->Enable(); }
if ((m_print_plate_idx + 1) >= m_print_plate_total) { m_bitmap_next_plate->Hide(); }
else { m_bitmap_next_plate->Show(); }
if ((m_print_plate_idx + 1) >= m_print_plate_total) { m_bitmap_next_plate->Disable(); }
else { m_bitmap_next_plate->Enable(); }
if (m_print_plate_total == 1) {
m_bitmap_last_plate->Show(false);
m_bitmap_next_plate->Show(false);
}
}*/
}
}
void SelectMachineDialog::sys_color_changed()