summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps_interactive.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-11 16:55:24 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-11 16:55:24 +0000
commite6f88adc2dd3e3f0a31f74d1de569152a96bb3f9 (patch)
tree13c83dc37ebce6eb15d4bfa7fbc931807edb8a55 /perl-install/install/steps_interactive.pm
parentce3afdda46a2ace66d19221f36e34cc1c9444110 (diff)
downloaddrakx-backup-do-not-use-e6f88adc2dd3e3f0a31f74d1de569152a96bb3f9.tar
drakx-backup-do-not-use-e6f88adc2dd3e3f0a31f74d1de569152a96bb3f9.tar.gz
drakx-backup-do-not-use-e6f88adc2dd3e3f0a31f74d1de569152a96bb3f9.tar.bz2
drakx-backup-do-not-use-e6f88adc2dd3e3f0a31f74d1de569152a96bb3f9.tar.xz
drakx-backup-do-not-use-e6f88adc2dd3e3f0a31f74d1de569152a96bb3f9.zip
(selectKeyboard) just hide "advanced" title if there're no "advanced" widgets
Diffstat (limited to 'perl-install/install/steps_interactive.pm')
-rw-r--r--perl-install/install/steps_interactive.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm
index 7956aa27c..1831f4421 100644
--- a/perl-install/install/steps_interactive.pm
+++ b/perl-install/install/steps_interactive.pm
@@ -102,7 +102,8 @@ sub selectKeyboard {
{ label => N("Please choose your keyboard layout"), title => 1 },
if_(@best, { val => \$KEYBOARD, type => 'list', format => $format, sort => 1,
list => [ @best ], changed => sub { $other = 0 } }),
- { label => N("Here is the full list of available keyboards:"), title => 1, advanced => @best },
+ if_(@best,
+ { label => N("Here is the full list of available keyboards:"), title => 1, advanced => 1 }),
{ val => \$ext_keyboard, type => 'list', format => $format, changed => sub { $other = 1 },
list => [ difference2([ keyboard::KEYBOARDs() ], \@best) ], advanced => @best > 1 }
]);