aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Rpmdragora/gui.pm6
-rw-r--r--lib/AdminPanel/Rpmdragora/gurpm.pm1
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/AdminPanel/Rpmdragora/gui.pm b/lib/AdminPanel/Rpmdragora/gui.pm
index 92851ce6..cd6ba4bf 100644
--- a/lib/AdminPanel/Rpmdragora/gui.pm
+++ b/lib/AdminPanel/Rpmdragora/gui.pm
@@ -938,8 +938,10 @@ sub fast_toggle {
interactive_msg($loc->N("Warning"), '<b>' . $loc->N("Rpmdragora or one of its priority dependencies needs to be updated first. Rpmdragora will then restart.") . '</b>' . "\n\n");
}
# toggle_nodes($w->{tree}->window, $w->{detail_list_model}, \&set_leaf_state, $w->{detail_list_model}->get($iter, $pkg_columns{state}),
- my $val = $pkgs->{$name}{selected};
- my $old_status = $val ? 'to_install' : 'to_update';
+
+ my $old_status = node_state($name);
+
+ #$DB::single = 1;
# my $old_state;
# if($item->checked()){
diff --git a/lib/AdminPanel/Rpmdragora/gurpm.pm b/lib/AdminPanel/Rpmdragora/gurpm.pm
index b5eb1b29..0c7dd6f7 100644
--- a/lib/AdminPanel/Rpmdragora/gurpm.pm
+++ b/lib/AdminPanel/Rpmdragora/gurpm.pm
@@ -78,6 +78,7 @@ sub flush {
sub label {
my ($self, $label) = @_;
+ $self->{mainw}->startMultipleChanges();
$self->{label}->setValue($label) if $label;
#select(undef, undef, undef, 0.1); #- hackish :-(
$self->flush();