Skip to content

Commit

Permalink
Deleted some comments in MenuPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
soficabe committed Feb 15, 2024
1 parent 7641d36 commit 5fd4470
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/pvzclone/view/impl/MenuPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ public MenuPanel(final SwingViewImpl parent, final String backgroundSource) {
}
});
levelButton.addActionListener(e -> {
//if(this.parent.getController().getChosenLevel().isEmpty()) {
this.parent.setScene(SwingViewImpl.LEVEL_PANEL_CONSTRAINT);
startButton.setEnabled(true);
//levelButton.setEnabled(false);
//}
this.parent.setScene(SwingViewImpl.LEVEL_PANEL_CONSTRAINT);
startButton.setEnabled(true);
});
exitButton.addActionListener(e -> {
final int n = JOptionPane.showConfirmDialog(parent.getFrame(), "Do you really want to quit?",
Expand Down

0 comments on commit 5fd4470

Please sign in to comment.