mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
Reload All and Project Path (#4903)
* Reload All and Project Path * Revert Reload All logic to original --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
872f729d75
commit
6d19e2d29c
1 changed files with 11 additions and 0 deletions
|
@ -1490,6 +1490,17 @@ void MenuFactory::create_plate_menu()
|
||||||
},
|
},
|
||||||
m_parent);
|
m_parent);
|
||||||
|
|
||||||
|
// reload all objects on current plate
|
||||||
|
append_menu_item(
|
||||||
|
menu, wxID_ANY, _L("Reload All"), _L("reload all from disk"),
|
||||||
|
[](wxCommandEvent&) {
|
||||||
|
PartPlate* plate = plater()->get_partplate_list().get_selected_plate();
|
||||||
|
assert(plate);
|
||||||
|
plater()->set_prepare_state(Job::PREPARE_STATE_MENU);
|
||||||
|
plater()->reload_all_from_disk();
|
||||||
|
},
|
||||||
|
"", nullptr, []() { return !plater()->get_partplate_list().get_selected_plate()->get_objects().empty(); }, m_parent);
|
||||||
|
|
||||||
// orient objects on current plate
|
// orient objects on current plate
|
||||||
append_menu_item(menu, wxID_ANY, _L("Auto Rotate"), _L("auto rotate current plate"),
|
append_menu_item(menu, wxID_ANY, _L("Auto Rotate"), _L("auto rotate current plate"),
|
||||||
[](wxCommandEvent&) {
|
[](wxCommandEvent&) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue