ENH: update slice status if ams count change

jira:STUDIO-10609

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I1cf2b15d084c40589a8c8954d310567b5daa9afb
This commit is contained in:
xun.zhang 2025-02-27 15:06:24 +08:00 committed by lane.wei
parent cbe5818382
commit aa46f311e9
1 changed files with 1 additions and 0 deletions

View File

@ -858,6 +858,7 @@ public:
std::vector<std::string> extruder_ams_count = save_extruder_ams_count_to_string(preset_bundle.extruder_ams_counts);
std::string extruder_ams_count_str = boost::algorithm::join(extruder_ams_count, ",");
wxGetApp().app_config->set("presets", "extruder_ams_count", extruder_ams_count_str);
wxGetApp().plater()->update(); // update slice status
}
static void GetAMSCount(int index, int & ams4, int & ams1)