From 71b76d74d76d68a261ff5941e0d30cdf8f121782 Mon Sep 17 00:00:00 2001 From: SoftFever <103989404+SoftFever@users.noreply.github.com> Date: Sun, 30 Jul 2023 19:25:02 +0800 Subject: [PATCH] Fixed a regression where print settings set by calibration features were not applied properly #1614 --- src/slic3r/GUI/Tab.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index bb40eae2ec..d9d0aef6c1 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1641,12 +1641,6 @@ void Tab::on_presets_changed() if (wxGetApp().plater() == nullptr) return; - // Orca: update presets for the selected printer - if(m_type == Preset::TYPE_PRINTER) { - m_preset_bundle->update_selections(*wxGetApp().app_config); - wxGetApp().plater()->sidebar().on_filaments_change(m_preset_bundle->filament_presets.size()); - } - // Instead of PostEvent (EVT_TAB_PRESETS_CHANGED) just call update_presets wxGetApp().plater()->sidebar().update_presets(m_type); @@ -4244,6 +4238,11 @@ bool Tab::select_preset(std::string preset_name, bool delete_current /*=false*/, // check if there is something in the cache to move to the new selected preset apply_config_from_cache(); + // Orca: update presets for the selected printer + if (m_type == Preset::TYPE_PRINTER) { + m_preset_bundle->update_selections(*wxGetApp().app_config); + wxGetApp().plater()->sidebar().on_filaments_change(m_preset_bundle->filament_presets.size()); + } load_current_preset(); }