diff options
author | bfox <bfox> | 2001-01-18 21:59:50 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-01-18 21:59:50 +0000 |
commit | d9ed29bd788151cec16e7bd831a3965e572d4ead (patch) | |
tree | 1c915e9803590e5d4144a0c5299eb7feb5fb44f3 /text.py | |
parent | 3a41a90c80bd675d067b15518888760c2e43b317 (diff) | |
download | anaconda-d9ed29bd788151cec16e7bd831a3965e572d4ead.tar.gz anaconda-d9ed29bd788151cec16e7bd831a3965e572d4ead.tar.xz anaconda-d9ed29bd788151cec16e7bd831a3965e572d4ead.zip |
Made it so that the language selection screen shrinks if you only have a few options. Also, if you only install one language, you don't have to see that screen at all.
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -182,6 +182,9 @@ class LanguageDefaultWindow: languages = todo.language.available () langs = todo.language.getSupported () + if len(langs) <= 1: + return + descriptions = languages.keys () descriptions.sort () current = todo.language.get () @@ -195,7 +198,7 @@ class LanguageDefaultWindow: if found == 0: default = langs[0] - height = min((screen.height - 16, len(descriptions))) + height = min((screen.height - 16, len(langs))) buttons = [_("Ok"), _("Back")] @@ -208,12 +211,6 @@ class LanguageDefaultWindow: choice = langs[choice] -# lang = languages [choice] - -# print choice -# time.sleep(2) -# todo.language.setByAbbrev (choice) - todo.language.set (choice) return INSTALL_OK |