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:
parent
cbe5818382
commit
aa46f311e9
|
@ -858,6 +858,7 @@ public:
|
||||||
std::vector<std::string> extruder_ams_count = save_extruder_ams_count_to_string(preset_bundle.extruder_ams_counts);
|
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, ",");
|
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().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)
|
static void GetAMSCount(int index, int & ams4, int & ams1)
|
||||||
|
|
Loading…
Reference in New Issue