Updated FlashCard Controller

FlashCard next scene button now loads up assignments
This commit is contained in:
law39 2020-04-29 14:09:11 +01:00
parent b4f63d2500
commit d8808a3b9e

View file

@ -10,6 +10,7 @@ import javafx.scene.text.Text;
import javafx.scene.transform.Rotate;
import javafx.util.Duration;
import uk.ac.aber.cs22120.group20.javafx.Application;
import uk.ac.aber.cs22120.group20.selfassessment.AssessmentGenerator;
import java.io.IOException;
@ -108,7 +109,7 @@ public class FlashcardController {
@FXML
private void switchToAddWord() throws IOException {
ScreenSwitch.swap(ScreenSwitch.SceneEnum.addWordScene);
AssessmentGenerator.generateAssessment(Application.dictionary);
}
}