mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06: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:
parent
69b9beaec0
commit
87a996d0d5
6 changed files with 20 additions and 14 deletions
|
@ -1254,10 +1254,10 @@ void fatal_error(wxWindow* parent)
|
|||
|
||||
// Called after the Preferences dialog is closed and the program settings are saved.
|
||||
// Update the UI based on the current preferences.
|
||||
void GUI_App::update_ui_from_settings(bool apply_free_camera_correction)
|
||||
void GUI_App::update_ui_from_settings()
|
||||
{
|
||||
update_label_colours();
|
||||
mainframe->update_ui_from_settings(apply_free_camera_correction);
|
||||
mainframe->update_ui_from_settings();
|
||||
}
|
||||
|
||||
void GUI_App::persist_window_geometry(wxTopLevelWindow *window, bool default_maximized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue