mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
fix(lang): fix crash when clicking on Settings when translation json are unreachable (#2265)
This commit is contained in:
parent
6a56113e7c
commit
81db20d2c8
@ -12,7 +12,7 @@ namespace big
|
|||||||
|
|
||||||
ImGui::SeparatorText("SETTINGS_LANGUAGES"_T.data());
|
ImGui::SeparatorText("SETTINGS_LANGUAGES"_T.data());
|
||||||
|
|
||||||
if (ImGui::BeginCombo("Menu Language", language_entries.at(current_pack).name.c_str()))
|
if (language_entries.contains(current_pack) && ImGui::BeginCombo("Menu Language", language_entries.at(current_pack).name.c_str()))
|
||||||
{
|
{
|
||||||
for (auto& i : language_entries)
|
for (auto& i : language_entries)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user