diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-03-05 02:09:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-03-05 02:09:18 +0000 |
commit | 9baaee15f91261996e110b9e7010826f6b950e23 (patch) | |
tree | e74a0256533cd50a153a2277501871e0eda5acb6 /Rpmdrake/gui.pm | |
parent | 932b9252ad305455c5cc49861546c21999bbc509 (diff) | |
download | rpmdrake-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/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 4 |
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; |