From b3eef895ff1a34ed70284d829114288ad099a2c5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 5 Jul 2002 12:59:23 +0000 Subject: minimize startup: only load harddrake::bttv if the user click on "tv card" field in the hw summary window --- perl-install/install_steps_interactive.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 314ba2225..ae2ec26d7 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -47,7 +47,6 @@ use install_steps; use install_interactive; use install_any; use detect_devices; -use harddrake::bttv; use run_program; use devices; use fsedit; @@ -1030,7 +1029,7 @@ sub summary { } @sound_cards), if_($isa_sound_card, { label => _("Sound card"), clicked => $isa_sound_card }), (map { -{ label => _("TV card"), val => $_->{description}, clicked => \&bttv::config()} +{ label => _("TV card"), val => $_->{description}, clicked => sub { use harddrake::bttv; bttv::config($o) }} } grep { $_->{driver} eq 'bttv' } detect_devices::probeall()), ]); install_steps::configureTimezone($o); #- do not forget it. -- cgit v1.2.1