From a9e7173498881873576df600b3fe4aaf6b51dcad Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 14 Mar 2008 18:25:54 +0000 Subject: show wait_message earlier and remove main window showing hack (wait_message will end with a default window icon though) --- lib/network/netcenter.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/network') 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; -- cgit v1.2.1