From 785eed2ca0c6acbf6e5d0180fc0476f93b36bf78 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 3 Dec 2019 18:34:46 +0100 Subject: [PATCH] Added context to new saved preset name --- src/slic3r/GUI/Tab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index e663c0e47..ee1750c37 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2990,7 +2990,8 @@ void Tab::save_preset(std::string name /*= ""*/) if (name.empty()) { const Preset &preset = m_presets->get_selected_preset(); auto default_name = preset.is_default ? "Untitled" : - preset.is_system ? (boost::format(_utf8(L("%1% - Copy"))) % preset.name).str() : +// preset.is_system ? (boost::format(_utf8(L("%1% - Copy"))) % preset.name).str() : + preset.is_system ? (boost::format(_CTX_utf8(L_CONTEXT("%1% - Copy", "PresetName"), "PresetName")) % preset.name).str() : preset.name; bool have_extention = boost::iends_with(default_name, ".ini");