From 12cebddce6441afced9d3b060a3fcf977023b4c5 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Thu, 27 Jan 2022 15:39:49 +0100 Subject: [PATCH] Replace Ctrl -> Cmd in hints on Apple. --- src/slic3r/GUI/HintNotification.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/HintNotification.cpp b/src/slic3r/GUI/HintNotification.cpp index 291ce8f408..274c0a6168 100644 --- a/src/slic3r/GUI/HintNotification.cpp +++ b/src/slic3r/GUI/HintNotification.cpp @@ -14,6 +14,7 @@ #include "libslic3r/Config.hpp" #include "libslic3r/PrintConfig.hpp" +#include #include #include #include @@ -342,6 +343,9 @@ void HintDatabase::load_hints_from_file(const boost::filesystem::path& path) //unescape text1 unescape_string_cstyle(dict["text"], fulltext); fulltext = _utf8(fulltext); +#ifdef __APPLE__ + boost::replace_all(fulltext, "Ctrl", "Cmd"); +#endif //__APPLE__ // replace and for imgui markers std::string marker_s(1, ImGui::ColorMarkerStart); std::string marker_e(1, ImGui::ColorMarkerEnd);