mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
SavePresetDialog: Improvements
This commit is contained in:
parent
3c3e463f50
commit
96a364c3e6
3 changed files with 229 additions and 140 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue