From d3301ce5436232ea60201c24961e38cbdbf97ff5 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Tue, 22 Apr 2025 18:18:27 +0800 Subject: [PATCH] FIX:Switch to third-party printer should reset combox choices jira: github 6197 Change-Id: Iff9bc6cf3cdcf6e62614eaa4c5bb140ea62479a1 --- src/slic3r/GUI/Plater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index bea10e42b..18b76066d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2169,6 +2169,7 @@ void Sidebar::update_all_preset_comboboxes() } else { p->btn_connect_printer->Show(); p->m_bpButton_ams_filament->Hide(); + reset_bed_type_combox_choices(); p_mainframe->set_print_button_to_default(MainFrame::PrintSelectType::eSendGcode); auto cfg = preset_bundle.printers.get_edited_preset().config; wxString url; @@ -15127,7 +15128,7 @@ std::vector> Plater::get_extruders_colors() return colors_out; } - void Plater::on_bed_type_change(BedType bed_type, bool is_gcode_file) { +void Plater::on_bed_type_change(BedType bed_type, bool is_gcode_file) { sidebar().set_is_gcode_file(is_gcode_file); sidebar().on_bed_type_change(bed_type); }