Added takesnapshot() call for:
- split of the instances, - renaming of the Object/Volume item - changing of the additional settings.
This commit is contained in:
parent
fb39516c65
commit
7dd63b2c00
2 changed files with 17 additions and 5 deletions
src/slic3r/GUI
|
@ -93,6 +93,7 @@ bool ObjectSettings::update_settings_list()
|
|||
btn->SetToolTip(_(L("Remove parameter")));
|
||||
|
||||
btn->Bind(wxEVT_BUTTON, [opt_key, config, this](wxEvent &event) {
|
||||
wxGetApp().plater()->take_snapshot(wxString::Format(_(L("Delete Option %s")), opt_key));
|
||||
config->erase(opt_key);
|
||||
wxGetApp().obj_list()->changed_object();
|
||||
wxTheApp->CallAfter([this]() {
|
||||
|
@ -137,6 +138,13 @@ bool ObjectSettings::update_settings_list()
|
|||
if (is_extruders_cat)
|
||||
option.opt.max = wxGetApp().extruders_edited_cnt();
|
||||
optgroup->append_single_option_line(option);
|
||||
|
||||
optgroup->get_field(opt)->m_on_change = [optgroup](const std::string& opt_id, const boost::any& value) {
|
||||
// first of all take a snapshot and then change value in configuration
|
||||
wxGetApp().plater()->take_snapshot(wxString::Format(_(L("Change Option %s")), opt_id));
|
||||
optgroup->on_change_OG(opt_id, value);
|
||||
};
|
||||
|
||||
}
|
||||
optgroup->reload_config();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue