The switching options dialog lists all available switching options ordered alphabetically. When returning checked options it should keep the same ordering not to confuse users.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- pyanaconda/ui/gui/spokes/keyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py index d35eb2f..a943d1f 100644 --- a/pyanaconda/ui/gui/spokes/keyboard.py +++ b/pyanaconda/ui/gui/spokes/keyboard.py @@ -238,7 +238,7 @@ class ConfigureSwitchingDialog(GUIObject): def checked_options(self): """Property returning all checked options from the list"""
- ret = [row[0] for row in self._switchingOptsStore if row[1] and row[0]] + ret = [row[0] for row in self._switchingOptsSort if row[1] and row[0]] return ret
def on_use_option_toggled(self, renderer, path, *args):
diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py index d35eb2f..a943d1f 100644 --- a/pyanaconda/ui/gui/spokes/keyboard.py +++ b/pyanaconda/ui/gui/spokes/keyboard.py @@ -238,7 +238,7 @@ class ConfigureSwitchingDialog(GUIObject): def checked_options(self): """Property returning all checked options from the list"""
ret = [row[0] for row in self._switchingOptsStore if row[1] and row[0]]
ret = [row[0] for row in self._switchingOptsSort if row[1] and row[0]] return retdef on_use_option_toggled(self, renderer, path, *args):
Good idea.
- Chris
anaconda-patches@lists.fedorahosted.org