mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
FullscreenUI: Fix crash with language select on Linux
This commit is contained in:
parent
44a4f2703a
commit
1809885927
|
@ -3071,9 +3071,9 @@ void FullscreenUI::DrawInterfaceSettingsPage()
|
||||||
if (static_cast<u32>(index) >= language_list.size())
|
if (static_cast<u32>(index) >= language_list.size())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ImGuiFullscreen::CloseChoiceDialog();
|
|
||||||
Host::RunOnCPUThread(
|
Host::RunOnCPUThread(
|
||||||
[language = language_list[index].second]() { Host::ChangeLanguage(language); });
|
[language = language_list[index].second]() { Host::ChangeLanguage(language); });
|
||||||
|
ImGuiFullscreen::CloseChoiceDialog();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue