From 2e422da03c6491bbf21ff683c22cc9ec4a42e851 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 19 Jul 2004 07:35:21 +0000 Subject: disable the connect button if up interface is found (there is currently no reliable way to find the gateway interface) --- perl-install/standalone/net_monitor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/net_monitor') 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); -- cgit v1.2.1