From 6fb76b9b67344fd67dd19cf61800f24a4e93be36 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 13 Jul 2005 06:34:50 +0000 Subject: show wireless options only if a wireless card is present --- perl-install/standalone/net_applet | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet index 925832c55..cfe18de13 100644 --- a/perl-install/standalone/net_applet +++ b/perl-install/standalone/net_applet @@ -231,9 +231,11 @@ sub setState { $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); if ($state_type ne 'notconfigured') { - $add_action->('wireless'); - $menu->append($_->{menuitem}) foreach values %wireless_networks; - $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); + if (detect_devices::has_wireless()) { + $add_action->('wireless'); + $menu->append($_->{menuitem}) foreach values %wireless_networks; + $menu->append(gtkshow(Gtk2::SeparatorMenuItem->new)); + } $add_action->('chooseInterface') ; } -- cgit v1.2.1