SavePresetDialog: Improvements

This commit is contained in:
YuSanka 2020-07-29 16:05:30 +02:00
parent 3c3e463f50
commit 96a364c3e6
3 changed files with 229 additions and 140 deletions

View file

@ -3262,7 +3262,7 @@ void Tab::save_preset(std::string name /*= ""*/, bool detach)
std::string suffix = detach ? _utf8(L("Detached")) : _CTX_utf8(L_CONTEXT("Copy", "PresetName"), "PresetName");
if (name.empty()) {
SavePresetDialog dlg(m_presets_choice, suffix);
SavePresetDialog dlg(m_type, suffix);
if (dlg.ShowModal() != wxID_OK)
return;
name = dlg.get_name();