aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-05 02:09:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-05 02:09:18 +0000
commit9baaee15f91261996e110b9e7010826f6b950e23 (patch)
treee74a0256533cd50a153a2277501871e0eda5acb6 /Rpmdrake
parent932b9252ad305455c5cc49861546c21999bbc509 (diff)
downloadrpmdrake-9baaee15f91261996e110b9e7010826f6b950e23.tar
rpmdrake-9baaee15f91261996e110b9e7010826f6b950e23.tar.gz
rpmdrake-9baaee15f91261996e110b9e7010826f6b950e23.tar.bz2
rpmdrake-9baaee15f91261996e110b9e7010826f6b950e23.tar.xz
rpmdrake-9baaee15f91261996e110b9e7010826f6b950e23.zip
remember state of "Show automatically selected packages" (#38138)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 60bd2f7a..b263103b 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -544,7 +544,7 @@ sub callback_choices {
}
sub deps_msg {
- return 1 if $dont_show_selections;
+ return 1 if $dont_show_selections->[0];
my ($title, $msg, $nodes, $nodes_with_deps) = @_;
my @deps = sort { $a cmp $b } difference2($nodes_with_deps, $nodes);
@deps > 0 or return 1;
@@ -583,7 +583,7 @@ sub toggle_nodes {
@nodes = grep { exists $pkgs->{$_} } @nodes
or return;
#- avoid selecting too many packages at once
- return if !$dont_show_selections && @nodes > 2000;
+ return if !$dont_show_selections->[0] && @nodes > 2000;
my $new_state = !$pkgs->{$nodes[0]}{selected};
my @nodes_with_deps;