diff options
Diffstat (limited to 'modules/rpmdragora/dragoraUpdate')
-rwxr-xr-x | modules/rpmdragora/dragoraUpdate | 15 |
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 { |