Ticket #685: menu_item.diff
| File menu_item.diff, 1.2 KB (added by kthakore, 4 years ago) |
|---|
-
lib/Padre/Action/Run.pm
71 71 $_[0]->on_run_command; 72 72 }, 73 73 ); 74 Padre::Action->new( 75 name => 'run.run_TDD_tests', 76 label => Wx::gettext('TDD all Tests'), 77 comment => Wx::gettext('Builds the current project, then run all tests.'), 78 shortcut => 'Ctrl-Shift-F5', 79 menu_event => sub { 80 $_[0]->on_run_tdd_tests; 81 }, 82 ); 74 83 75 84 Padre::Action->new( 76 85 name => 'run.run_tests', -
lib/Padre/Wx/Menu/Run.pm
49 49 $self, 50 50 'run.run_tests', 51 51 ); 52 53 $self->{run_TDD_tests} = $self->add_menu_action( 54 $self, 55 'run.run_TDD_tests', 56 ); 52 57 53 58 $self->{run_this_test} = $self->add_menu_action( 54 59 $self, … … 94 99 ? $self->{run_command}->IsEnabled 95 100 : 0 96 101 ); 102 $self->{run_TDD_tests}->Enable( 103 $document && defined( $document->filename ) && $document->filename =~ /\.t$/ 104 ? $self->{run_command}->IsEnabled 105 : 0 106 ); 97 107 98 108 return 1; 99 109 }
