Skip to content

Commit

Permalink
#16 Select first downloaded language in combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Maksimov committed Nov 9, 2021
1 parent 8f532cc commit 2c6b8a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frog/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def fill_lang_combo(self):
self.lang_combo.append(language_manager.get_language_code(lang), lang)
if self.active_lang:
self.lang_combo.set_active_id(self.active_lang.rsplit('+')[0])
else:
self.lang_combo.set_active(0)

if not downloaded_languages:
self.lang_combo.append("-1", _("No languages"))
Expand Down

0 comments on commit 2c6b8a6

Please sign in to comment.