SDL: Fix setting changes not applying

This commit is contained in:
Connor McLaughlin
2020-02-28 16:59:44 +10:00
parent 4b94224955
commit f03de090c4
2 changed files with 92 additions and 57 deletions

View File

@ -87,7 +87,8 @@ private:
/// Executes a callback later, after the UI has finished rendering. Needed to boot while rendering ImGui.
void RunLater(std::function<void()> callback);
void SaveAndUpdateSettings();
void SaveSettings();
void UpdateSettings();
void UpdateFullscreen();
@ -125,4 +126,7 @@ private:
bool m_focus_main_menu_bar = false;
bool m_settings_window_open = false;
bool m_about_window_open = false;
// this copy of the settings is modified by imgui
Settings m_settings_copy;
};