Revert "FIX:Switch to third-party printer should reset combox choices"

This reverts commit 277b7294e8b172ccdcdad6f49a8f1138ea730b75.

Reason for revert: revert some code

Change-Id: Iec8e9c2a5f73edcbe3c6d0dd7e71d4e71357ea51
This commit is contained in:
海底椰 2025-04-23 14:35:29 +08:00 committed by Lane.Wei
parent d3301ce543
commit a7a74234ad
1 changed files with 1 additions and 2 deletions

View File

@ -2169,7 +2169,6 @@ 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;
@ -15128,7 +15127,7 @@ std::vector<std::array<float, 4>> 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);
}