summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index a46a123b..8abab03e 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -115,7 +115,7 @@ my %state = (
new_distribution => {
colour => [ 'bundle' ],
changes => [ 'okay' ],
- menu => [ 'upgrade_distro', 'update', 'check' ],
+ menu => [ 'upgrade_distro', 'check' ],
tt => [ N("A new stable distribution has been released") . "\n\n" . N("Do you want to upgrade?") ]
},
disconnected => {
@@ -593,6 +593,9 @@ sub setState {
'/usr/share/icons/mdkonline.png', $icon);
if ($state eq 'new_distribution') {
$bubble->add_action('clicked', N("Upgrade the system"), \&upgrade);
+ if ($sub_state eq 'updates') {
+ push @arr, 'update';
+ }
} elsif ($state eq 'updates') {
$bubble->add_action('clicked', N("Install updates"), \&installUpdates);
} elsif (member($state, qw(no_enabled_medium no_update_medium))) {