FIX: bed_type not follow machine preset

Jira: STUDIO-5578
when direct open project from https://makerworld.com/

Change-Id: I3281cf45e3057d766008487975b4585d2e277110
This commit is contained in:
zhou.xu 2023-12-14 17:39:50 +08:00 committed by Lane.Wei
parent 66eb5fda9e
commit ebf5dae0ba
1 changed files with 2 additions and 5 deletions

View File

@ -1142,11 +1142,8 @@ void Sidebar::update_all_preset_comboboxes()
if (!user_bed_type_flag) { //bed_type not follow machine
set_bed_by_curr_bed_type(config);
} else {//bed_type follow machine
if (m_soft_first_start || m_is_gcode_file) {
if (m_is_gcode_file) {
m_is_gcode_file = false;
}
// should include soft close then open ,.gcode.3mf case
if (m_is_gcode_file) {//.gcode.3mf case
m_is_gcode_file = false;
set_bed_by_curr_bed_type(config);
}
else if (user_bed_type_flag) {