mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-11 13:09:02 +08:00
FIX:Switch to third-party printer should reset combox choices
jira: github 6197 Change-Id: Iff9bc6cf3cdcf6e62614eaa4c5bb140ea62479a1
This commit is contained in:
parent
6063b11e9c
commit
4abc66766e
@ -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;
|
||||||
@ -15130,7 +15131,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…
x
Reference in New Issue
Block a user