Read the settings file once, keeping Dear ImGui's section as it parses
This commit is contained in:
1 parent
91cc11aa3b
commit
4b17e9b328
3 files changed
+8
-53
No files matched your search
+2
-2
@@ -158,8 +158,8 @@ static bool window_open(App& app)
|
||||
io.KeyRepeatRate = settings.keyboardRepeatRate;
|
||||
io.ConfigWindowsMoveFromTitleBarOnly = true;
|
||||
ImGui::GetStyle().FontScaleMain = percent_to_unit(settings.uiScale);
|
||||
if (auto imguiData = Settings::imgui_data_load(settings_path_get()); !imguiData.empty())
|
||||
ImGui::LoadIniSettingsFromMemory(imguiData.c_str(), imguiData.size());
|
||||
if (!settings.imguiData.empty())
|
||||
ImGui::LoadIniSettingsFromMemory(settings.imguiData.c_str(), settings.imguiData.size());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user