Fixed a preset selection after a config wizard running (SPE-841)

This commit is contained in:
YuSanka 2019-03-05 15:33:38 +01:00
parent a6ec3ea883
commit 2ddd2ed4c7
3 changed files with 25 additions and 9 deletions

View file

@ -38,6 +38,11 @@ FreqSettingsBundle FREQ_SETTINGS_BUNDLE_SLA =
{ L("Pad and Support") , { "supports_enable", "pad_enable" } }
};
static PrinterTechnology printer_technology()
{
return wxGetApp().preset_bundle->printers.get_selected_preset().printer_technology();
}
ObjectList::ObjectList(wxWindow* parent) :
wxDataViewCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_MULTIPLE),
m_parent(parent)
@ -667,11 +672,6 @@ void ObjectList::get_options_menu(settings_menu_hierarchy& settings_menu, const
}
}
Slic3r::PrinterTechnology ObjectList::printer_technology() const
{
return wxGetApp().preset_bundle->printers.get_selected_preset().printer_technology();
}
void ObjectList::get_settings_choice(const wxString& category_name)
{
wxArrayString names;