From fa2da0694288cd74762cd5ca9a43e53e1f2ce1df Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 5 Mar 2008 20:52:43 +0000 Subject: show a unique entry per sysfs device (#33950) --- lib/network/netcenter.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/network') diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 025b145..ad86ec7 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -41,10 +41,10 @@ sub main { my $wait = $in->wait_message(N("Please wait"), N("Please wait")); my @all_connections = map { $_->get_connections(automatic_only => 1, fast_only => 1) } network::connection::get_types; - my ($intf, $no_intf) = partition { exists $_->{device}{interface} } @all_connections; + my ($sysfs, $no_sysfs) = partition { exists $_->{device}{sysfs_device} } @all_connections; my @connections = ( - (uniq_ { $_->{device} } @$no_intf), - (uniq_ { $_->{device}{interface} } @$intf) + (uniq_ { $_->{device}{sysfs_device} } @$sysfs), + (uniq_ { $_->{device}{interface} } @$no_sysfs) ); my $pixbufs = network::connection_manager::create_pixbufs(); -- cgit v1.2.1