Skip to content

Commit 9510b1a

Browse files
committed
Disable filament merge option if not SEMM
1 parent 2915e30 commit 9510b1a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/slic3r/GUI/GUI_Factories.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,10 +1489,9 @@ void MenuFactory::create_filament_action_menu(bool init, int active_filament_men
14891489
menu, wxID_ANY, _L("Delete"), _L("Delete this filament"), [](wxCommandEvent&) {
14901490
plater()->sidebar().delete_filament(-2); }, "", nullptr,
14911491
[]() {
1492-
auto& sidebar = plater()->sidebar();
1493-
return sidebar.combos_filament().size() > 1
1492+
return plater()->sidebar().combos_filament().size() > 1
14941493
// Orca: only show delete filament option for SEMM machines unless is BBL
1495-
&& sidebar.should_show_SEMM_buttons();
1494+
&& Sidebar::should_show_SEMM_buttons();
14961495
}, m_parent);
14971496
}
14981497

@@ -1502,7 +1501,7 @@ void MenuFactory::create_filament_action_menu(bool init, int active_filament_men
15021501

15031502
wxMenu* sub_menu = new wxMenu();
15041503
std::vector<wxBitmap*> icons = get_extruder_color_icons(true);
1505-
int filaments_cnt = icons.size();
1504+
int filaments_cnt = Sidebar::should_show_SEMM_buttons() ? icons.size() : 0;
15061505
for (int i = 0; i < filaments_cnt; i++) {
15071506
if (i == active_filament_menu_id)
15081507
continue;

src/slic3r/GUI/Plater.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class Sidebar : public wxPanel
198198
void get_big_btn_sync_pos_size(wxPoint &pt, wxSize &size);
199199
void get_small_btn_sync_pos_size(wxPoint &pt, wxSize &size);
200200
// Orca
201-
bool should_show_SEMM_buttons();
201+
static bool should_show_SEMM_buttons();
202202
void show_SEMM_buttons(bool bshow);
203203
void update_dynamic_filament_list();
204204

0 commit comments

Comments
 (0)