diff options
-rwxr-xr-x | lib/network/netcenter.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 4f4bf82..66f03f8 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -30,6 +30,8 @@ sub build_cmanager { sub main { my ($in, $net, $dbus) = @_; + my $wait = $in->wait_message(N("Please wait"), N("Please wait")); + my $title = N("Network Center"); my $icon = '/usr/share/mcc/themes/default/drakroam-mdk.png'; @@ -38,9 +40,6 @@ sub main { #- so that transient_for is defined, for wait messages and popups to be centered $::main_window = $w->{real_window}; - $w->show; - 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; @all_connections = grep { !network::tools::is_zeroconf_interface($_->get_interface) } @all_connections; my ($sysfs, $no_sysfs) = partition { exists $_->{device}{sysfs_device} } @all_connections; |