Changed PrusaResearch.ini.

*(Uncommented "printer_model","printer_vendor", "printer_variant", "default_filament_profile")
* Added msg "It's system preset" to Dependencies
This commit is contained in:
YuSanka 2018-03-23 09:41:04 +01:00
parent 1c5970d0a2
commit 53e100b890
2 changed files with 23 additions and 21 deletions

View file

@ -617,6 +617,13 @@ void Tab::on_presets_changed()
event.SetString(m_name);
g_wxMainFrame->ProcessWindowEvent(event);
}
const Preset* parent = m_presets->get_selected_preset_parent();
const wxString description_line = parent == nullptr ?
_(L("It's default preset")) : parent == &m_presets->get_selected_preset() ?
_(L("It's system preset")) :
_(L("Current preset is inherited from")) + ":\n" + parent->name;
m_parent_preset_description_line->SetText(description_line);
}
void Tab::update_frequently_changed_parameters()
@ -1727,11 +1734,6 @@ void Tab::load_current_preset()
"bullet_white.png" :
wxMSW ? "sys_unlock.png" : "lock_open.png";
wxString description_line = parent == nullptr ?
_(L("It's default preset")) :
_(L("Current preset is inherited from")) + ":\n" + parent->name;
m_parent_preset_description_line->SetText(description_line);
// use CallAfter because some field triggers schedule on_change calls using CallAfter,
// and we don't want them to be called after this update_dirty() as they would mark the
// preset dirty again