FullscreenUI: Fix enable toggle not applying

This commit is contained in:
Connor McLaughlin 2021-07-04 14:22:08 +10:00
parent 7366d0fcff
commit 4ebca591fd

View file

@ -2370,6 +2370,7 @@ void DrawSettingsWindow()
"When enabled and logged in, DuckStation will scan for achievements on startup.", "When enabled and logged in, DuckStation will scan for achievements on startup.",
"Cheevos", "Enabled", false)) "Cheevos", "Enabled", false))
{ {
settings_changed = true;
s_host_interface->RunLater([]() { s_host_interface->RunLater([]() {
if (!ConfirmChallengeModeEnable()) if (!ConfirmChallengeModeEnable())
s_host_interface->GetSettingsInterface()->SetBoolValue("Cheevos", "Enabled", false); s_host_interface->GetSettingsInterface()->SetBoolValue("Cheevos", "Enabled", false);