diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-07-19 07:35:21 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-07-19 07:35:21 +0000 |
commit | 2e422da03c6491bbf21ff683c22cc9ec4a42e851 (patch) | |
tree | d6fcc9237a845031b459133ed909c4f873acbeea /perl-install/standalone/net_monitor | |
parent | fc6d40ae6789751e74308ebc957266b4ca066291 (diff) | |
download | drakx-2e422da03c6491bbf21ff683c22cc9ec4a42e851.tar drakx-2e422da03c6491bbf21ff683c22cc9ec4a42e851.tar.gz drakx-2e422da03c6491bbf21ff683c22cc9ec4a42e851.tar.bz2 drakx-2e422da03c6491bbf21ff683c22cc9ec4a42e851.tar.xz drakx-2e422da03c6491bbf21ff683c22cc9ec4a42e851.zip |
disable the connect button if up interface is found (there is
currently no reliable way to find the gateway interface)
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-x | perl-install/standalone/net_monitor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index 2ccd8d040..9c8c10852 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -447,8 +447,8 @@ sub update() { $statusbar->pop(1); $statusbar->push(1, $isconnected == 1 ? N("Connected") : N("Not connected")); } - $button_connect->set("label", $isconnected == 1 ? N("Disconnect %s", $netcnx->{type}) : N("Connect %s", $netcnx->{type})); - $button_connect->set_sensitive(1); + $button_connect->set("label", $isconnected == 1 ? N("Disconnect %s", $netcnx->{type}) : N("Connect %s", $netcnx->{type})); + $button_connect->set_sensitive(scalar(@interfaces)); } if (!(-e $network::tools::connect_file && -e $network::tools::disconnect_file)) { $button_connect->set_sensitive(0); |