mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Fixed a regression where print settings set by calibration features were not applied properly #1614
This commit is contained in:
parent
e78a6d964b
commit
71b76d74d7
1 changed files with 5 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue