FullscreenUI: Fix crash with language select on Linux

This commit is contained in:
Stenzek 2024-04-11 12:52:56 +10:00
parent 44a4f2703a
commit 1809885927
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -3071,9 +3071,9 @@ void FullscreenUI::DrawInterfaceSettingsPage()
if (static_cast<u32>(index) >= language_list.size())
return;
ImGuiFullscreen::CloseChoiceDialog();
Host::RunOnCPUThread(
[language = language_list[index].second]() { Host::ChangeLanguage(language); });
ImGuiFullscreen::CloseChoiceDialog();
});
}
}