diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-07-13 06:34:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-07-13 06:34:50 +0000 |
commit | 6fb76b9b67344fd67dd19cf61800f24a4e93be36 (patch) | |
tree | 5c50a4c754fd883cfda62b3251b20b1d28e7fed0 | |
parent | 9b26cdb87523518b7913a824bd0b52a9e10ba66e (diff) | |
download | drakx-6fb76b9b67344fd67dd19cf61800f24a4e93be36.tar drakx-6fb76b9b67344fd67dd19cf61800f24a4e93be36.tar.gz drakx-6fb76b9b67344fd67dd19cf61800f24a4e93be36.tar.bz2 drakx-6fb76b9b67344fd67dd19cf61800f24a4e93be36.tar.xz drakx-6fb76b9b67344fd67dd19cf61800f24a4e93be36.zip |
show wireless options only if a wireless card is present
-rw-r--r-- | perl-install/standalone/net_applet | 8 |
1 files changed, 5 insertions, 3 deletions
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') ; } |