Skip to content

Commit

Permalink
Simplify lambda expression
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann authored and tinevez committed Nov 12, 2024
1 parent d3e1526 commit fd70cae
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ private void remakeGUI( final Consumer< String > projectOpener )
listPanel.add( ta, "" );

final JButton btnOpen = new JButton( MastodonIcons.LOAD_ICON_SMALL );
btnOpen.addActionListener( l -> {
projectOpener.accept( ta.getText() );
// Recent projects will be updated in the launcher method.
} );
btnOpen.addActionListener( l -> projectOpener.accept( ta.getText() ) ); // Recent projects will be updated in the launcher method.
add( btnOpen );

final JButton btnClear = new JButton( MastodonIcons.REMOVE_ICON );
Expand Down

0 comments on commit fd70cae

Please sign in to comment.