Skip to content

Commit

Permalink
Merge pull request #493 from 19690ao/OpenNewPuzzle
Browse files Browse the repository at this point in the history
Opening Puzzle Bug Fixes
  • Loading branch information
charlestian23 authored Mar 14, 2023
2 parents a96f549 + 3bc112a commit 830d843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/edu/rpi/legup/ui/ProofEditorPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public JMenuBar getMenuBar() {

mBar.add(file);
file.add(newPuzzle);
newPuzzle.addActionListener((ActionEvent) -> promptPuzzle());
newPuzzle.addActionListener((ActionEvent) -> loadPuzzle());
if (os.equals("mac")) {
newPuzzle.setAccelerator(KeyStroke.getKeyStroke('N', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/rpi/legup/ui/PuzzleEditorPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void setMenuBar() {

// file>new
JMenuItem newPuzzle = new JMenuItem("New");
newPuzzle.addActionListener((ActionEvent) -> promptPuzzle());
newPuzzle.addActionListener((ActionEvent) -> loadPuzzle());
if (os.equals("mac")) {
newPuzzle.setAccelerator(KeyStroke.getKeyStroke('N', Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
}
Expand Down

0 comments on commit 830d843

Please sign in to comment.