mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 20:05:59 +08:00
Print bed has to be updated, when printer preset is detached from the system preset
This commit is contained in:
parent
311ac96e45
commit
d59b11568e
@ -3627,8 +3627,15 @@ void Tab::save_preset(std::string name /*= ""*/, bool detach)
|
|||||||
name = dlg.get_name();
|
name = dlg.get_name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (detach && m_type == Preset::TYPE_PRINTER)
|
||||||
|
m_config->opt_string("printer_model", true) = "";
|
||||||
|
|
||||||
// Save the preset into Slic3r::data_dir / presets / section_name / preset_name.ini
|
// Save the preset into Slic3r::data_dir / presets / section_name / preset_name.ini
|
||||||
m_presets->save_current_preset(name, detach);
|
m_presets->save_current_preset(name, detach);
|
||||||
|
|
||||||
|
if (detach && m_type == Preset::TYPE_PRINTER)
|
||||||
|
wxGetApp().mainframe->on_config_changed(m_config);
|
||||||
|
|
||||||
// Mark the print & filament enabled if they are compatible with the currently selected preset.
|
// Mark the print & filament enabled if they are compatible with the currently selected preset.
|
||||||
// If saving the preset changes compatibility with other presets, keep the now incompatible dependent presets selected, however with a "red flag" icon showing that they are no more compatible.
|
// If saving the preset changes compatibility with other presets, keep the now incompatible dependent presets selected, however with a "red flag" icon showing that they are no more compatible.
|
||||||
m_preset_bundle->update_compatible(PresetSelectCompatibleType::Never);
|
m_preset_bundle->update_compatible(PresetSelectCompatibleType::Never);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user