FIX: new project use the app_config flush_multiplier

Change-Id: I5b820399a814a043581fcfadb9629cbe15dd1c52
This commit is contained in:
zhimin.zeng 2023-04-11 11:07:54 +08:00 committed by Lane.Wei
parent 9b6a182e8f
commit de3bb7eb4f
2 changed files with 8 additions and 1 deletions

View file

@ -758,7 +758,6 @@ Sidebar::Sidebar(Plater *parent)
(project_config.option<ConfigOptionFloats>("flush_volumes_vector"))->values = std::vector<double>(extruders.begin(), extruders.end());
(project_config.option<ConfigOptionFloat>("flush_multiplier"))->set(new ConfigOptionFloat(dlg.get_flush_multiplier()));
wxGetApp().app_config->set("flush_multiplier", std::to_string(dlg.get_flush_multiplier()));
wxGetApp().preset_bundle->export_selections(*wxGetApp().app_config);
wxGetApp().plater()->update_project_dirty_from_presets();