Skip to content

Commit

Permalink
Make save-as hotkey consistent across platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
themanyone committed Dec 10, 2024
1 parent 6abd145 commit 5644326
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ deps/build-linux/*
**/.idea/
.pkg_cache
CMakeUserPresets.json
.aider*
.env
5 changes: 1 addition & 4 deletions src/slic3r/GUI/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1450,11 +1450,8 @@ void MainFrame::init_menubar_as_editor()
append_menu_item(fileMenu, wxID_ANY, _L("&Save Project") + "\tCtrl+S", _L("Save current project file"),
[this](wxCommandEvent&) { save_project(); }, "save", nullptr,
[this](){return m_plater != nullptr && can_save(); }, this);
#ifdef __APPLE__
// Ctrl+Shift+S should be consistent across platforms.
append_menu_item(fileMenu, wxID_ANY, _L("Save Project &as") + dots + "\tCtrl+Shift+S", _L("Save current project file as"),
#else
append_menu_item(fileMenu, wxID_ANY, _L("Save Project &as") + dots + "\tCtrl+Alt+S", _L("Save current project file as"),
#endif // __APPLE__
[this](wxCommandEvent&) { save_project_as(); }, "save", nullptr,
[this](){return m_plater != nullptr && can_save_as(); }, this);

Expand Down

0 comments on commit 5644326

Please sign in to comment.