Skip to content

Commit

Permalink
Fix equals, log and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ottlinger committed May 3, 2024
1 parent 1ef50ae commit 1ebf645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static void main(final String[] args) {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch (Exception e) {
LOG.error("Error during application startup: " + e);
LOG.error("Error during application startup", e);
}
MainUIWindow.build();
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/aikiit/fotorenamer/gui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void init() {
this.pack();
ComponentGaugeUtil.makeCentered(this);

// let button get the focus, needs to be run in the and and async
// let button get the focus, needs to be run in the end and async
SwingUtilities.invokeLater(() -> {
getRootPane().setDefaultButton(endButton);
endButton.requestFocusInWindow();
Expand Down Expand Up @@ -133,7 +133,7 @@ private void loadHelpContents(final JPanel base, final JEditorPane textfield) {
* @param event Event to react on in this UI-component.
*/
public final void actionPerformed(final ActionEvent event) {
if (event.getSource() == this.endButton) {
if (this.endButton.equals(event.getSource())) {
LOG.debug("Disabling visibility of helpWindow.");
setVisible(false);
}
Expand Down

0 comments on commit 1ebf645

Please sign in to comment.