FIX: [STUDIO-1389] update dirty state when changing bed type

Change-Id: I5e8939b72a68ebd51b900289bdc9b38695797d08
This commit is contained in:
chunmao.guo 2022-11-18 19:01:13 +08:00 committed by Lane.Wei
parent eecc2a738c
commit 7587cb5737
2 changed files with 2 additions and 0 deletions

View file

@ -5224,6 +5224,7 @@ void Plater::priv::on_select_bed_type(wxCommandEvent &evt)
if (bed_type != btCount) {
config.set_key_value("curr_bed_type", new ConfigOptionEnum<BedType>(bed_type));
wxGetApp().plater()->update_project_dirty_from_presets();
// clear all plates' bed type config
for (int i = 0; i < partplate_list.get_plate_count(); i++)
partplate_list.get_plate(i)->reset_bed_type();