Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-01-31 14:15:04 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-01-31 14:15:04 +0300
commit3a99b23ec762cd1ad9b4c5cbb4373d386bfe4b66 (patch)
treedb569c6319a715e7a086104f8fe5194380ec2a43 /src/slic3r/GUI/MainFrame.cpp
parent570f77cbdc8e20c07e63efe64bd0fdc1c99865c4 (diff)
#3580 - Added menu item 'Edit/Reload from disk' and F5 key acceleration to reload the entire plater
Diffstat (limited to 'src/slic3r/GUI/MainFrame.cpp')
-rw-r--r--src/slic3r/GUI/MainFrame.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp
index d1466ef0b..9929cf082 100644
--- a/src/slic3r/GUI/MainFrame.cpp
+++ b/src/slic3r/GUI/MainFrame.cpp
@@ -578,6 +578,11 @@ void MainFrame::init_menubar()
append_menu_item(editMenu, wxID_ANY, _(L("&Paste")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "V",
_(L("Paste clipboard")), [this](wxCommandEvent&) { m_plater->paste_from_clipboard(); },
"paste_menu", nullptr, [this](){return m_plater->can_paste_from_clipboard(); }, this);
+
+ editMenu->AppendSeparator();
+ append_menu_item(editMenu, wxID_ANY, _(L("Re&load from disk")) + sep + "F5",
+ _(L("Reload the plater from disk")), [this](wxCommandEvent&) { m_plater->reload_all_from_disk(); },
+ "", nullptr, [this]() {return !m_plater->model().objects.empty(); }, this);
}
// Window menu