Skip to content
Snippets Groups Projects
Commit eadf9ae9 authored by Jakob Behrens's avatar Jakob Behrens
Browse files

Attempting to fix the load function, the save works just as intended

parent 73cd2594
No related branches found
No related tags found
No related merge requests found
......@@ -111,8 +111,9 @@ public class BracketViewController extends TournamentController {
public void onPressLoad() {
try
{
TableTennisApplication tableTennisApplication = new TableTennisApplication();
BracketViewController.tournamentRegister.clear();
BracketViewController.tournamentRegister.addPlayers(FileHandler.readCsv(Path.of("NEWTOURNAMENT.csv")));
TableTennisApplication tableTennisApplication = new TableTennisApplication();
tableTennisApplication.changeScene("tournament-match-view.fxml");
}catch (Exception e){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment