Skip to content

Commit

Permalink
gui: Fix incorrect default language on macOS
Browse files Browse the repository at this point in the history
Fixes cemu_project/Cemu#1091, fixes cemu_project/Cemu#1151
  • Loading branch information
exverge-0 committed Jul 22, 2024
1 parent f2ae6ce commit 66b2763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/CemuApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ bool CemuApp::OnInit()
if(!isFirstStart)
{
g_config.Load();
LocalizeUI(static_cast<wxLanguage>(GetConfig().language.GetValue()));
LocalizeUI(static_cast<wxLanguage>(GetConfig().language == wxLANGUAGE_DEFAULT ? wxLocale::GetSystemLanguage() : GetConfig().language.GetValue()));
}
else
{
LocalizeUI(wxLANGUAGE_DEFAULT);
LocalizeUI(static_cast<wxLanguage>(wxLocale::GetSystemLanguage()));
}

for (auto&& path : failedWriteAccess)
Expand Down

0 comments on commit 66b2763

Please sign in to comment.