Skip to content

Commit

Permalink
help button recognizes helpContext
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 5, 2024
1 parent af8c09d commit 826dab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Prima/Dialog/FileDialog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ sub init
text => '~Help',
size => [ 96, 36],
growMode => gm::GrowLoX | gm::GrowLoY,
delegations => [qw(Click)],
) if $self-> {showHelp};

$self-> Name-> current(1);
Expand Down Expand Up @@ -1452,6 +1453,8 @@ sub Open_Click
$self-> ok;
}

sub Help_Click { shift->help }

sub filter
{
if ( $#_) {
Expand Down Expand Up @@ -1662,6 +1665,7 @@ sub init
name => 'Help',
text => '~Help',
size => [ 80, 30],
delegations => [qw(Click)],
) if $self-> {showHelp};

$self-> {curpaths} = {};
Expand Down Expand Up @@ -1717,6 +1721,8 @@ sub OK_Click
$self-> ok;
}

sub Help_Click { shift->help }

sub directory
{
return $_[0]-> Dir-> path unless $#_;
Expand Down

0 comments on commit 826dab1

Please sign in to comment.