This commit is contained in:
parent
bad1ee71f8
commit
addbfa5021
@ -15809,7 +15809,10 @@ void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size)
|
|||||||
// Call post-read handlers
|
// Call post-read handlers
|
||||||
ImGuiSettingsCleanupArgs cleanup_args;
|
ImGuiSettingsCleanupArgs cleanup_args;
|
||||||
if (g.IO.ConfigIniSettingsAutoDiscardMonths > 0)
|
if (g.IO.ConfigIniSettingsAutoDiscardMonths > 0)
|
||||||
|
{
|
||||||
cleanup_args.DiscardOlderThanMonths = g.IO.ConfigIniSettingsAutoDiscardMonths;
|
cleanup_args.DiscardOlderThanMonths = g.IO.ConfigIniSettingsAutoDiscardMonths;
|
||||||
|
CleanupIniSettings(&cleanup_args);
|
||||||
|
}
|
||||||
for (ImGuiSettingsHandler& handler : g.SettingsHandlers)
|
for (ImGuiSettingsHandler& handler : g.SettingsHandlers)
|
||||||
if (handler.ApplyAllFn != NULL)
|
if (handler.ApplyAllFn != NULL)
|
||||||
handler.ApplyAllFn(&g, &handler);
|
handler.ApplyAllFn(&g, &handler);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user