Fixed minor bug - Added missed layout of the Tab, when preset is saved with new name.

"Delete" button wasn't observed
This commit is contained in:
YuSanka 2021-11-23 15:54:41 +01:00
parent 0c110af1df
commit 9029f63d0c

View File

@ -3569,6 +3569,7 @@ void Tab::save_preset(std::string name /*= ""*/, bool detach)
on_presets_changed();
// If current profile is saved, "delete preset" button have to be enabled
m_btn_delete_preset->Show();
m_btn_delete_preset->GetParent()->Layout();
if (m_type == Preset::TYPE_PRINTER)
static_cast<TabPrinter*>(this)->m_initial_extruders_count = static_cast<TabPrinter*>(this)->m_extruders_count;