From 6d19e2d29cb49aaa7ac3884d3adbca29db9e1ce7 Mon Sep 17 00:00:00 2001 From: chshkhr Date: Tue, 30 Apr 2024 16:55:23 +0300 Subject: [PATCH] Reload All and Project Path (#4903) * Reload All and Project Path * Revert Reload All logic to original --------- Co-authored-by: SoftFever --- src/slic3r/GUI/GUI_Factories.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/slic3r/GUI/GUI_Factories.cpp b/src/slic3r/GUI/GUI_Factories.cpp index 14fa20763b..e3cec4e55e 100644 --- a/src/slic3r/GUI/GUI_Factories.cpp +++ b/src/slic3r/GUI/GUI_Factories.cpp @@ -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&) {