mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 03:21:49 +08:00
Hide "Height range Modifier" menu item for the Simple mode
suggestion from the https://github.com/prusa3d/PrusaSlicer/issues/7381
This commit is contained in:
parent
a683745347
commit
a8cc19127e
@ -484,6 +484,10 @@ void MenuFactory::append_menu_items_add_volume(wxMenu* menu)
|
|||||||
menu->Destroy(settings_id);
|
menu->Destroy(settings_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update "Height range Modifier" item (delete old & create new)
|
||||||
|
if (const auto range_id = menu->FindItem(_L("Height range Modifier")); range_id != wxNOT_FOUND)
|
||||||
|
menu->Destroy(range_id);
|
||||||
|
|
||||||
const ConfigOptionMode mode = wxGetApp().get_mode();
|
const ConfigOptionMode mode = wxGetApp().get_mode();
|
||||||
|
|
||||||
if (mode == comAdvanced) {
|
if (mode == comAdvanced) {
|
||||||
@ -513,6 +517,8 @@ void MenuFactory::append_menu_items_add_volume(wxMenu* menu)
|
|||||||
append_submenu(menu, sub_menu, wxID_ANY, _(item.first), "", item.second,
|
append_submenu(menu, sub_menu, wxID_ANY, _(item.first), "", item.second,
|
||||||
[]() { return obj_list()->is_instance_or_object_selected(); }, m_parent);
|
[]() { return obj_list()->is_instance_or_object_selected(); }, m_parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
append_menu_item_layers_editing(menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxMenuItem* MenuFactory::append_menu_item_layers_editing(wxMenu* menu)
|
wxMenuItem* MenuFactory::append_menu_item_layers_editing(wxMenu* menu)
|
||||||
@ -944,11 +950,7 @@ void MenuFactory::create_object_menu()
|
|||||||
[]() { return plater()->can_split(true) && wxGetApp().get_mode() > comSimple; }, m_parent);
|
[]() { return plater()->can_split(true) && wxGetApp().get_mode() > comSimple; }, m_parent);
|
||||||
m_object_menu.AppendSeparator();
|
m_object_menu.AppendSeparator();
|
||||||
|
|
||||||
// Layers Editing for object
|
// "Height range Modifier" and "Add (volumes)" menu items will be added later in append_menu_items_add_volume()
|
||||||
append_menu_item_layers_editing(&m_object_menu);
|
|
||||||
m_object_menu.AppendSeparator();
|
|
||||||
|
|
||||||
// "Add (volumes)" popupmenu will be added later in append_menu_items_add_volume()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuFactory::create_sla_object_menu()
|
void MenuFactory::create_sla_object_menu()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user