mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-26 10:24:28 +08: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
@ -1490,6 +1490,17 @@ void MenuFactory::create_plate_menu()
|
||||
},
|
||||
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
|
||||
append_menu_item(menu, wxID_ANY, _L("Auto Rotate"), _L("auto rotate current plate"),
|
||||
[](wxCommandEvent&) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user