Skip to content

Commit 00dd18f

Browse files
committed
Always check translation list for unmapped characters when opening language drop-down
We still avoid the stutter from loading the files each time, but since translation name characters only end up in the persistent extra string list if they're missing in the currently loaded translation, we need to check for those always or at least after switching translations.
1 parent e826265 commit 00dd18f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/DesktopPlusUI/WindowSettings.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,10 +786,13 @@ void WindowSettings::UpdatePageMainCatInterface()
786786
static int list_id = 0;
787787

788788
//Load language list when dropdown is used for the first time
789-
if ( (ImGui::IsWindowAppearing()) && (list_langs.empty()) )
789+
if (ImGui::IsWindowAppearing())
790790
{
791-
list_id = 0;
792-
list_langs = TranslationManager::GetTranslationList();
791+
if (list_langs.empty())
792+
{
793+
list_id = 0;
794+
list_langs = TranslationManager::GetTranslationList();
795+
}
793796

794797
//Select matching entry and add unmapped characters if needed
795798
const std::string& current_filename = ConfigManager::GetValue(configid_str_interface_language_file);

0 commit comments

Comments
 (0)