mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 00:39:03 +08:00
Preferences: Linux specific: Fixed layouts.
(CallAfter() is used to correct set of controlls sizes)
This commit is contained in:
parent
9cf971769d
commit
d42e3823dc
@ -227,7 +227,12 @@ void PreferencesDialog::build()
|
||||
tabs = new Notebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_TOP | wxTAB_TRAVERSAL | wxNB_NOPAGETHEME | wxNB_DEFAULT);
|
||||
#else
|
||||
tabs = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_TOP | wxTAB_TRAVERSAL |wxNB_NOPAGETHEME | wxNB_DEFAULT );
|
||||
// tabs->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
#ifdef __linux__
|
||||
tabs->Bind(wxEVT_NOTEBOOK_PAGE_CHANGED, [this](wxBookCtrlEvent& e) {
|
||||
e.Skip();
|
||||
CallAfter([this]() { tabs->GetCurrentPage()->Layout(); });
|
||||
});
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Add "General" tab
|
||||
@ -1094,7 +1099,11 @@ void PreferencesDialog::create_settings_font_widget()
|
||||
font_example->SetFont(font);
|
||||
m_values[opt_key] = format("%1%", val);
|
||||
stb_sizer->Layout();
|
||||
#ifdef __linux__
|
||||
CallAfter([this]() { refresh_og(m_optgroup_other); });
|
||||
#else
|
||||
refresh_og(m_optgroup_other);
|
||||
#endif
|
||||
};
|
||||
|
||||
auto change_value = [size_sc, apply_font](wxCommandEvent& evt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user