Fixed OSX/Linux build

Destroy Settings Dialog when close application
This commit is contained in:
YuSanka 2020-05-05 09:35:28 +02:00
parent 53516c8086
commit 43be7a51aa
3 changed files with 9 additions and 3 deletions
src/slic3r/GUI

View file

@ -325,7 +325,7 @@ void PreferencesDialog::create_settings_mode_widget()
wxRadioBox* box = new wxRadioBox(parent, wxID_ANY, _L("Settings layout mode"), wxDefaultPosition, wxDefaultSize, WXSIZEOF(choices), choices,
3, wxRA_SPECIFY_ROWS);
box->SetButtonFont(wxGetApp().normal_font());
box->SetFont(wxGetApp().normal_font());
box->SetSelection(selection);
box->Bind(wxEVT_RADIOBOX, [this](wxCommandEvent& e) {
@ -339,7 +339,7 @@ void PreferencesDialog::create_settings_mode_widget()
auto sizer = new wxBoxSizer(wxHORIZONTAL);
sizer->Add(box, 1, wxALIGN_CENTER_VERTICAL);
m_optgroup_gui->sizer->Add(sizer, 0, wxEXPAND | wxALL, em_unit());
m_optgroup_gui->sizer->Add(sizer, 0, wxEXPAND);
}