Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CPAN task properly functioning with MetaCPAN::Client #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add files via upload
  • Loading branch information
MaxPerl authored Sep 4, 2020
commit 26f56147ed812eadd2230aeab7ba4f072925e718
4 changes: 2 additions & 2 deletions lib/Padre/Wx/CPAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ sub render_search {
for my $rec (@$model) {

# Add a CPAN distribution and author as a row to the list
$list->InsertImageStringItem( $index, $rec->{documentation}, $self->{images}{file} );
$list->InsertImageStringItem( $index, $rec->{name}, $self->{images}{file} );
$list->SetItemData( $index, $index );
$list->SetItem( $index, 1, $rec->{author} );
$list->SetItemBackgroundColour( $index, $alternate_color ) unless $index % 2;
Expand Down Expand Up @@ -396,7 +396,7 @@ sub _sort_model {
@model = sort {
if ( $command eq 'search' )
{
$a->{documentation} cmp $b->{documentation};
$a->{name} cmp $b->{name};
} elsif ( $command eq 'recent' ) {
$a->{name} cmp $b->{name};
} elsif ( $command eq 'favorite' ) {
Expand Down