Skip to content

Commit

Permalink
BUG: Ensure language combobox shows default language
Browse files Browse the repository at this point in the history
This change ensures the fix integrated through commontk/CTK#1179 (BUG: Fix
ctkLanguageComboBox normalizing default language and selection) is effective.
  • Loading branch information
jcfr committed Jan 16, 2024
1 parent 5e4e769 commit 006ee9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LanguageTools/LanguageTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ def updateGUIFromSettings(self):

self.refreshLanguageList()
wasBlocked = self.ui.languageSelector.blockSignals(True)
self.ui.languageSelector.currentLanguage = settings.value("language")
# Ensure older settings with an empty and invalid "language" entry are ignored by
# explicitly checking for an empty value.
if settings.contains("language") and settings.value("language") != "":
self.ui.languageSelector.currentLanguage = settings.value("language")
self.ui.languageSelector.blockSignals(wasBlocked)

self.logic.customLreleasePath = self.ui.lreleasePathLineEdit.currentPath
Expand Down

0 comments on commit 006ee9e

Please sign in to comment.