summaryrefslogtreecommitdiffstats
path: root/lib/network/netcenter.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 18:25:54 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 18:25:54 +0000
commita9e7173498881873576df600b3fe4aaf6b51dcad (patch)
treea830f2870f7ed59a6d47b1f6bd7069ee2a12cd13 /lib/network/netcenter.pm
parent882ba7240a86af7e010b65d2c6a23cb4d03a7c8d (diff)
downloaddrakx-net-a9e7173498881873576df600b3fe4aaf6b51dcad.tar
drakx-net-a9e7173498881873576df600b3fe4aaf6b51dcad.tar.gz
drakx-net-a9e7173498881873576df600b3fe4aaf6b51dcad.tar.bz2
drakx-net-a9e7173498881873576df600b3fe4aaf6b51dcad.tar.xz
drakx-net-a9e7173498881873576df600b3fe4aaf6b51dcad.zip
show wait_message earlier and remove main window showing hack
(wait_message will end with a default window icon though)
Diffstat (limited to 'lib/network/netcenter.pm')
-rwxr-xr-xlib/network/netcenter.pm5
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;