From 18098859271339c8c67ccc370a942bce639098b2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 11 Apr 2024 12:52:56 +1000 Subject: [PATCH] FullscreenUI: Fix crash with language select on Linux --- src/core/fullscreen_ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/fullscreen_ui.cpp b/src/core/fullscreen_ui.cpp index 5da3580a8..6080a25ff 100644 --- a/src/core/fullscreen_ui.cpp +++ b/src/core/fullscreen_ui.cpp @@ -3071,9 +3071,9 @@ void FullscreenUI::DrawInterfaceSettingsPage() if (static_cast(index) >= language_list.size()) return; - ImGuiFullscreen::CloseChoiceDialog(); Host::RunOnCPUThread( [language = language_list[index].second]() { Host::ChangeLanguage(language); }); + ImGuiFullscreen::CloseChoiceDialog(); }); } }