diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 13:24:14 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 13:24:14 +0000 |
commit | cf69c19644faf7ce0ea8ae8428cb7bbd45398f74 (patch) | |
tree | 935b7e9580f3e893e725334c392af304bd0cf395 /mdkapplet | |
parent | 65d717ff6a9a3042a3f00d3f9eaae24100b89165 (diff) | |
download | mgaonline-cf69c19644faf7ce0ea8ae8428cb7bbd45398f74.tar mgaonline-cf69c19644faf7ce0ea8ae8428cb7bbd45398f74.tar.gz mgaonline-cf69c19644faf7ce0ea8ae8428cb7bbd45398f74.tar.bz2 mgaonline-cf69c19644faf7ce0ea8ae8428cb7bbd45398f74.tar.xz mgaonline-cf69c19644faf7ce0ea8ae8428cb7bbd45398f74.zip |
(setState) offer to add media directly from bubble (#39987)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -564,6 +564,9 @@ sub setState { '/usr/share/icons/mdkonline.png', $icon); $bubble->add_action('clicked', N("Install updates"), \&installUpdates) if $state eq 'updates'; $bubble->add_action('clicked', N("Upgrade the system"), \&upgrade) if $state eq 'new_distribution'; + if (member($state, qw(no_enabled_medium no_update_medium))) { + $bubble->add_action('clicked', N("Add media"), \&add_media); + } $bubble->set_timeout(5000); eval { $bubble->show }; |