aboutsummaryrefslogtreecommitdiffstats
path: root/modules/rpmdragora/dragoraUpdate
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-11-07 17:18:11 +0100
committerAngelo Naselli <anaselli@linux.it>2014-11-07 17:18:11 +0100
commitc1f70e7c8baf34fbf70d1f0b2baeed92e02108bb (patch)
treee17820e1a36d8180a4e5ee8e032707fecdbaf88e /modules/rpmdragora/dragoraUpdate
parent7253c3fd1c7d7a7fc469f523cb3ec5e67f557171 (diff)
downloadmanatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar.gz
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar.bz2
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.tar.xz
manatools-c1f70e7c8baf34fbf70d1f0b2baeed92e02108bb.zip
code reviewed for showing/hidding info option
Diffstat (limited to 'modules/rpmdragora/dragoraUpdate')
-rwxr-xr-xmodules/rpmdragora/dragoraUpdate15
1 files changed, 3 insertions, 12 deletions
diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate
index d2ccd024..5b20ed7d 100755
--- a/modules/rpmdragora/dragoraUpdate
+++ b/modules/rpmdragora/dragoraUpdate
@@ -267,18 +267,9 @@ sub run_treeview_dialog {
if (!$item) {
#URL emitted or at least a ref into RichText widget
my $url = yui::toYMenuEvent($event)->id ();
- $item = $packageTbl->selectedItem();
- my $pkg = $data{$item->index()}{fullname};
- if ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{details}) {
- $info_options->{details} = $info_options->{details} ? 0 : 1;
- AdminPanel::Rpmdragora::gui::setInfoOnWidget($pkg, $infoBox, $info_options);
- }
- elsif ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{files}) {
- $info_options->{files} = $info_options->{files} ? 0 : 1;
- AdminPanel::Rpmdragora::gui::setInfoOnWidget($pkg, $infoBox, $info_options);
- }
- elsif ($url eq $AdminPanel::Rpmdragora::gui::hidden_info{changelog}) {
- $info_options->{changelog} = $info_options->{changelog} ? 0 : 1;
+ if (AdminPanel::Rpmdragora::gui::info_details($url, $info_options) ) {
+ $item = $packageTbl->selectedItem();
+ my $pkg = $data{$item->index()}{fullname};
AdminPanel::Rpmdragora::gui::setInfoOnWidget($pkg, $infoBox, $info_options);
}
else {