Follow up c16fa93bdb -hot fix

This commit is contained in:
YuSanka 2023-01-23 11:26:19 +01:00
parent c16fa93bdb
commit 7f9f47da25

View File

@ -471,7 +471,7 @@ wxMenu* MenuFactory::append_submenu_add_generic(wxMenu* menu, ModelVolumeType ty
const ConfigOptionMode mode = wxGetApp().get_mode(); const ConfigOptionMode mode = wxGetApp().get_mode();
if (mode > comSimple) { if (type != ModelVolumeType::INVALID && mode > comSimple) {
append_menu_item(sub_menu, wxID_ANY, _L("Load") + " " + dots, "", append_menu_item(sub_menu, wxID_ANY, _L("Load") + " " + dots, "",
[type](wxCommandEvent&) { obj_list()->load_subobject(type); }, "", menu); [type](wxCommandEvent&) { obj_list()->load_subobject(type); }, "", menu);
sub_menu->AppendSeparator(); sub_menu->AppendSeparator();