FIX:Switch to third-party printer should reset combox choices
jira: github 6197 Change-Id: Iff9bc6cf3cdcf6e62614eaa4c5bb140ea62479a1
This commit is contained in:
parent
9c909f6524
commit
d3301ce543
|
@ -2169,6 +2169,7 @@ void Sidebar::update_all_preset_comboboxes()
|
||||||
} else {
|
} else {
|
||||||
p->btn_connect_printer->Show();
|
p->btn_connect_printer->Show();
|
||||||
p->m_bpButton_ams_filament->Hide();
|
p->m_bpButton_ams_filament->Hide();
|
||||||
|
reset_bed_type_combox_choices();
|
||||||
p_mainframe->set_print_button_to_default(MainFrame::PrintSelectType::eSendGcode);
|
p_mainframe->set_print_button_to_default(MainFrame::PrintSelectType::eSendGcode);
|
||||||
auto cfg = preset_bundle.printers.get_edited_preset().config;
|
auto cfg = preset_bundle.printers.get_edited_preset().config;
|
||||||
wxString url;
|
wxString url;
|
||||||
|
@ -15127,7 +15128,7 @@ std::vector<std::array<float, 4>> Plater::get_extruders_colors()
|
||||||
return colors_out;
|
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().set_is_gcode_file(is_gcode_file);
|
||||||
sidebar().on_bed_type_change(bed_type);
|
sidebar().on_bed_type_change(bed_type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue