Skip to content

Commit

Permalink
store updates
Browse files Browse the repository at this point in the history
  • Loading branch information
onehunga committed Jun 2, 2024
1 parent ae52ef7 commit c367351
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.settings
.classpath
.project
target
target
data.txt
Binary file modified data.txt
Binary file not shown.
1 change: 0 additions & 1 deletion src/main/java/oop/lernquiz/App.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package oop.lernquiz;

import oop.lernquiz.navigator.Navigator;
import oop.lernquiz.store.Storage;

public class App {
private static App app;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/oop/lernquiz/quiz/QuizRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import oop.lernquiz.navigator.props.LernkarteProps;
import oop.lernquiz.navigator.props.QuizBeendetProperties;
import oop.lernquiz.navigator.props.QuizFrageProperties;
import oop.lernquiz.store.Storage;

import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
Expand Down Expand Up @@ -55,6 +56,8 @@ public void quizStarten() {
}

public void quizBeenden() {
Storage.getInstance().write();

// this.filter.zustand();
Navigator.navigateTo("quiz-beendet",
new QuizBeendetProperties(this.themaModel, this.fragenCounter, this.falscheFrageCounter));
Expand Down

0 comments on commit c367351

Please sign in to comment.