mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 08:12:39 -07:00
Code refactoring to avoid a call of update_ui_from_settings() every time when switching between "3D-View" and "Preview"
This commit is contained in:
@@ -1887,7 +1887,7 @@ void MainFrame::add_to_recent_projects(const wxString& filename)
|
||||
//
|
||||
// Called after the Preferences dialog is closed and the program settings are saved.
|
||||
// Update the UI based on the current preferences.
|
||||
void MainFrame::update_ui_from_settings(bool apply_free_camera_correction)
|
||||
void MainFrame::update_ui_from_settings()
|
||||
{
|
||||
// const bool bp_on = wxGetApp().app_config->get("background_processing") == "1";
|
||||
// m_menu_item_reslice_now->Enable(!bp_on);
|
||||
@@ -1896,7 +1896,7 @@ void MainFrame::update_ui_from_settings(bool apply_free_camera_correction)
|
||||
// m_plater->sidebar().Layout();
|
||||
|
||||
if (m_plater)
|
||||
m_plater->update_ui_from_settings(apply_free_camera_correction);
|
||||
m_plater->update_ui_from_settings();
|
||||
for (auto tab: wxGetApp().tabs_list)
|
||||
tab->update_ui_from_settings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user