mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-21 23:14:25 +08:00
#3707 - Fixed buttons layout after closing preference dialog
This commit is contained in:
parent
69e1e46dd7
commit
47604b6326
@ -1148,11 +1148,12 @@ void MainFrame::add_to_recent_projects(const wxString& filename)
|
|||||||
// Update the UI based on the current preferences.
|
// Update the UI based on the current preferences.
|
||||||
void MainFrame::update_ui_from_settings()
|
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_menu_item_reslice_now->Enable(!bp_on);
|
||||||
m_plater->sidebar().show_reslice(!bp_on);
|
// m_plater->sidebar().show_reslice(!bp_on);
|
||||||
m_plater->sidebar().show_export(bp_on);
|
// m_plater->sidebar().show_export(bp_on);
|
||||||
m_plater->sidebar().Layout();
|
// m_plater->sidebar().Layout();
|
||||||
|
|
||||||
if (m_plater)
|
if (m_plater)
|
||||||
m_plater->update_ui_from_settings();
|
m_plater->update_ui_from_settings();
|
||||||
for (auto tab: wxGetApp().tabs_list)
|
for (auto tab: wxGetApp().tabs_list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user