Enabled "delete preset" button after current profile saving

This commit is contained in:
YuSanka 2018-07-03 12:19:34 +02:00
parent c7f3014d26
commit b682fb1829

View File

@ -2134,6 +2134,8 @@ void Tab::save_preset(std::string name /*= ""*/)
update_tab_ui();
// Update the selection boxes at the platter.
on_presets_changed();
// If current profile is saved, "delete preset" button have to be enabled
m_btn_delete_preset->Enable(true);
if (m_name == "printer")
static_cast<TabPrinter*>(this)->m_initial_extruders_count = static_cast<TabPrinter*>(this)->m_extruders_count;