From 5cf200b2c891c34c89960da93c158f8d79edf1d5 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Sun, 20 Jul 2014 16:03:32 +0200 Subject: Remove media add a wait message --- lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/AdminPanel') diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm index d0475b19..ef25fb3b 100644 --- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm +++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm @@ -611,15 +611,14 @@ sub remove_callback { yesno => 1, scroll => 1, ) or return 0; - # TODO dialog waiting if needed - # my $wait = wait_msg(N("Please wait, removing medium...")); + my $wait = wait_msg(N("Please wait, removing medium...")); foreach my $row (reverse(@rows)) { $something_changed = 1; urpm::media::remove_media($urpm, [ $urpm->{media}[$row] ]); urpm::media::write_urpmi_cfg($urpm); - # undef $wait - # remove_wait_msg($wait); } + remove_wait_msg($wait); + return 1; } -- cgit v1.2.1