From aee0cb382ba40607c278dbd68e5134fa26a2027c Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 1 Jan 2025 17:44:36 +0800 Subject: [PATCH] FIX:fixed the issue of multiple plates object card not flip pages jira:[STUDIO-9373] Change-Id: I520b2626da8dc3acc066b2ea26a5f8d3c27f64fb --- src/slic3r/GUI/SelectMachine.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index beb6efff6..9f88faad4 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -3656,8 +3656,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(); } @@ -4325,21 +4324,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()