diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-23 09:12:54 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-23 09:12:54 +0000 |
commit | 7074de6940ec76e488558635f2fbd1c18f2f9208 (patch) | |
tree | e3d035cd6a24161050616f3fa553cac6540f1075 /lib | |
parent | 0cf67c6ac6c356000bd246f0a712dee79fb8a613 (diff) | |
download | drakx-net-7074de6940ec76e488558635f2fbd1c18f2f9208.tar drakx-net-7074de6940ec76e488558635f2fbd1c18f2f9208.tar.gz drakx-net-7074de6940ec76e488558635f2fbd1c18f2f9208.tar.bz2 drakx-net-7074de6940ec76e488558635f2fbd1c18f2f9208.tar.xz drakx-net-7074de6940ec76e488558635f2fbd1c18f2f9208.zip |
show wait message when checking hardware
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection_manager.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index cdf0e2d..7369636 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -66,7 +66,12 @@ sub setup_connection { $cmanager->{in}->ask_warn(N("Error"), $cmanager->{connection}{device}{error}); return; } - my $device_ready = !$cmanager->{connection}->can('check_hardware') || $cmanager->{connection}->check_hardware; + my $device_ready = 1; + if ($cmanager->{connection}->can('check_hardware')) { + #- FIXME: change message to "Checking device..." in cooker + my $_wait = $cmanager->{in}->wait_message(N("Please wait"), N("Configuring device...")); + $device_ready = $cmanager->{connection}->check_hardware; + } if ($cmanager->{connection}->can('get_hardware_settings') && !$device_ready) { $cmanager->{connection}->guess_hardware_settings if $cmanager->{connection}->can('guess_hardware_settings'); $cmanager->{in}->ask_from_({ |