From 582dd529745ceca897bee237b7fac60e5ba8ca99 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 22 Aug 2003 12:59:37 +0000 Subject: (ask_fromW) split $set_advanced into $set_advanced and $set_advanced_raw to fix drakconnect "failling" to detect network interfaces in standalone mode when in expert mode --- perl-install/interactive/gtk.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'perl-install/interactive') diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index c320ac9e1..734d25d7e 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -592,11 +592,15 @@ sub ask_fromW { } }; + my $set_advanced_raw = sub { + ($advanced) = @_; + $advanced ? $advanced_pack->show : $advanced_pack->hide; + }; my $set_advanced = sub { ($advanced) = @_; $set_default_size->() if $advanced; $update->($common->{callbacks}{advanced}) if $advanced; - $advanced ? $advanced_pack->show : $advanced_pack->hide; + $set_advanced_raw->($advanced); @widgets = (@widgets_always, if_($advanced, @widgets_advanced)); $mainw->sync; #- for $set_all below (mainly for the set of clist) $set_all->(); #- must be done when showing advanced lists (to center selected value) @@ -661,7 +665,8 @@ sub ask_fromW { } gtkadd($mainw->{window}, $pack); $set_default_size->() if $has_scroll_always; - $set_advanced->($common->{advanced_state} || $::expert); + $set_advanced->($common->{advanced_state}); + $set_advanced_raw->($::expert) if $::isStandalone; my $widget_to_focus = $common->{focus_cancel} ? $mainw->{cancel} : -- cgit v1.2.1