Skip to content

Commit

Permalink
first finish
Browse files Browse the repository at this point in the history
  • Loading branch information
fab-kreuzer committed Apr 28, 2022
1 parent 24df8bf commit fdd09f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Panels/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;
import java.util.Properties;

public class Settings extends JFrame {
Expand Down Expand Up @@ -58,7 +59,11 @@ public void windowClosing(WindowEvent e) {
gameSummary.setSettingsOpen(false);
if (cbrestart.isSelected()) {
gameSummary.dispose();
GameMain.main(new String[2]);
try {
GameMain.main(new String[0]);
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
});
Expand Down
5 changes: 4 additions & 1 deletion src/Summaries/GameMain.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package Summaries;

import java.io.IOException;

public class GameMain {

public static void main( String[] args ) {
public static void main( String[] args ) throws IOException {

GameSummary game = new GameSummary();
game.init();
}
Expand Down

0 comments on commit fdd09f4

Please sign in to comment.