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

View file

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