summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index f8ee74ee..b6f5e1c7 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -220,7 +220,11 @@ $icon->signal_connect(activate => sub {
updates => \&installUpdates,
new_distribution => \&upgrade,
);
- $actions{$state_global}->() if ref $actions{$state_global};
+ my $action = $state_global;
+ if ($action eq 'new_distribution' && $sub_state eq 'updates') {
+ $action = 'updates';
+ }
+ $actions{$action}->() if ref $actions{$action};
});
foreach my $opt (@ARGV) {
if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }