FullscreenUI: Fix changing per-game settings not updating

This commit is contained in:
Connor McLaughlin 2022-07-29 22:20:07 +10:00
parent d012f65d4f
commit 79c401740c
1 changed files with 6 additions and 1 deletions

View File

@ -614,7 +614,12 @@ void FullscreenUI::Render()
{ {
auto lock = Host::GetSettingsLock(); auto lock = Host::GetSettingsLock();
GetEditingSettingsInterface()->Save(); GetEditingSettingsInterface()->Save();
Host::RunOnCPUThread([]() { System::ApplySettings(false); }); Host::RunOnCPUThread([gs = IsEditingGameSettings()]() {
if (gs)
System::ReloadGameSettings(false);
else
System::ApplySettings(false);
});
} }
ImGuiFullscreen::ResetCloseMenuIfNeeded(); ImGuiFullscreen::ResetCloseMenuIfNeeded();