diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 0a8db799fd..09e91840a2 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1280,7 +1280,7 @@ void Sidebar::update_all_preset_comboboxes() p->m_filament_icon->SetBitmap_("filament"); } - show_add_del_filament_button(cfg.opt_bool("single_extruder_multi_material")); + show_SEMM_buttons(cfg.opt_bool("single_extruder_multi_material")); //p->m_staticText_filament_settings->Update(); @@ -1845,12 +1845,14 @@ void Sidebar::sync_ams_list() Layout(); } -void Sidebar::show_add_del_filament_button(bool bshow) +void Sidebar::show_SEMM_buttons(bool bshow) { if(p->m_bpButton_add_filament) p->m_bpButton_add_filament->Show(bshow); if(p->m_bpButton_del_filament) p->m_bpButton_del_filament->Show(bshow); + if (p->m_flushing_volume_btn) + p->m_flushing_volume_btn->Show(bshow); Layout(); } diff --git a/src/slic3r/GUI/Plater.hpp b/src/slic3r/GUI/Plater.hpp index 95a08c1827..52f0706e89 100644 --- a/src/slic3r/GUI/Plater.hpp +++ b/src/slic3r/GUI/Plater.hpp @@ -149,7 +149,7 @@ public: std::map build_filament_ams_list(MachineObject* obj); void sync_ams_list(); // Orca - void show_add_del_filament_button(bool bshow); + void show_SEMM_buttons(bool bshow); ObjectList* obj_list(); ObjectSettings* obj_settings(); diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 1e5384bc06..0942714fac 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1434,7 +1434,7 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value) if (opt_key == "single_extruder_multi_material" ){ const auto bSEMM = m_config->opt_bool("single_extruder_multi_material"); - wxGetApp().sidebar().show_add_del_filament_button(bSEMM); + wxGetApp().sidebar().show_SEMM_buttons(bSEMM); wxGetApp().get_tab(Preset::TYPE_PRINT)->update(); }