mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
1.6
fix duplicated menu items
This commit is contained in:
parent
70a0f5f77d
commit
65963b465b
1 changed files with 0 additions and 21 deletions
|
@ -514,27 +514,6 @@ wxMenu* MenuFactory::append_submenu_add_generic(wxMenu* menu, ModelVolumeType ty
|
|||
"", menu);
|
||||
}
|
||||
|
||||
for (auto &item : {L("3DBenchy"), L("Autodesk FDM Test"), L("Voron Cube")}) {
|
||||
append_menu_item(
|
||||
sub_menu, wxID_ANY, _(item), "",
|
||||
[type, item](wxCommandEvent &) {
|
||||
std::vector<boost::filesystem::path> input_files;
|
||||
std::string file_name = item;
|
||||
if (file_name == "3DBenchy")
|
||||
file_name = "3DBenchy.stl";
|
||||
else if (file_name == "Autodesk FDM Test")
|
||||
file_name = "ksr_fdmtest_v4.stl";
|
||||
else if (file_name == "Voron Cube")
|
||||
file_name = "Voron_Design_Cube_v7.stl";
|
||||
else
|
||||
return;
|
||||
input_files.push_back(
|
||||
(boost::filesystem::path(Slic3r::resources_dir()) / "handy_models" / file_name));
|
||||
plater()->load_files(input_files, LoadStrategy::LoadModel);
|
||||
},
|
||||
"", menu);
|
||||
}
|
||||
|
||||
return sub_menu;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue