#3707 - Fixed buttons layout after closing preference dialog

This commit is contained in:
Enrico Turri 2020-02-26 10:18:04 +01:00
parent 69e1e46dd7
commit 47604b6326

View File

@ -1148,11 +1148,12 @@ void MainFrame::add_to_recent_projects(const wxString& filename)
// Update the UI based on the current preferences.
void MainFrame::update_ui_from_settings()
{
const bool bp_on = wxGetApp().app_config->get("background_processing") == "1";
// const bool bp_on = wxGetApp().app_config->get("background_processing") == "1";
// m_menu_item_reslice_now->Enable(!bp_on);
m_plater->sidebar().show_reslice(!bp_on);
m_plater->sidebar().show_export(bp_on);
m_plater->sidebar().Layout();
// m_plater->sidebar().show_reslice(!bp_on);
// m_plater->sidebar().show_export(bp_on);
// m_plater->sidebar().Layout();
if (m_plater)
m_plater->update_ui_from_settings();
for (auto tab: wxGetApp().tabs_list)