From cf69c19644faf7ce0ea8ae8428cb7bbd45398f74 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 4 Sep 2008 13:24:14 +0000 Subject: (setState) offer to add media directly from bubble (#39987) --- NEWS | 1 + mdkapplet | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 256ab16d..2b6bd16d 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - mdkapplet: + o offer to add media directly from bubble (#39987) o prevent running media manager more than one at a time o run media manager with --no-splash' option and handle "--urpmi-root=$root" o check again after adding update media diff --git a/mdkapplet b/mdkapplet index ecf544b5..73e74735 100755 --- a/mdkapplet +++ b/mdkapplet @@ -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 }; -- cgit v1.2.1