mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-30 23:15:09 +08:00
Added context to new saved preset name
This commit is contained in:
parent
7aea0ceff3
commit
785eed2ca0
@ -2990,7 +2990,8 @@ void Tab::save_preset(std::string name /*= ""*/)
|
|||||||
if (name.empty()) {
|
if (name.empty()) {
|
||||||
const Preset &preset = m_presets->get_selected_preset();
|
const Preset &preset = m_presets->get_selected_preset();
|
||||||
auto default_name = preset.is_default ? "Untitled" :
|
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;
|
preset.name;
|
||||||
|
|
||||||
bool have_extention = boost::iends_with(default_name, ".ini");
|
bool have_extention = boost::iends_with(default_name, ".ini");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user