From 9d6e49edf6d26f3625aee9dac8254e4c3ff19028 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 29 Oct 2009 18:41:20 +0000 Subject: (clean_list) save original icon when program is missing and restore it if program got installed --- control-center | 3 +++ 1 file changed, 3 insertions(+) diff --git a/control-center b/control-center index 4959d990..43679fb3 100755 --- a/control-center +++ b/control-center @@ -811,7 +811,10 @@ sub clean_list { if (!$is_present && $programs{$stuff}{packages2install}) { $is_present = 1; # override missing icon: + $programs{$stuff}{real_icon} ||= $programs{$stuff}{icon}; $programs{$stuff}{icon} = 'installremoverpm'; + } elsif ($programs{$stuff}{real_icon}) { + $programs{$stuff}{icon} = $programs{$stuff}{real_icon}; } # do not complain about missing entries in move: warn qq("$exec" is not executable [$stuff]) if $mdk_rel !~ /Move/ && !$is_present && !$programs{$stuff}{disabled}; -- cgit v1.2.1