Skip to content

Commit

Permalink
Merge pull request #18 from koellemichael/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
michaelkoelle authored Jul 25, 2019
2 parents 6baeb43 + 6a5ad16 commit 9dc42f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.koellemichael</groupId>
<artifactId>correctinator</artifactId>
<version>0.4.4</version>
<version>0.4.5</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/koellemichael/controller/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import java.util.List;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -355,6 +354,13 @@ private void suggestCreatingZip() {

res.ifPresent(type -> {
if(type == ButtonType.YES){
corrections.forEach(c -> {
try {
RatingFileParser.saveRatingFile(c);
} catch (IOException e) {
e.printStackTrace();
}
});
FileUtils.exportAsZipWithFileChooser(correctionsDirectory,correctionsDirectory.getParentFile(),("Korrektur_" + corrections.get(0).getLecture() + "_" + corrections.get(0).getExerciseSheet()).replace(" ", "_"),primaryStage);
}
});
Expand Down

0 comments on commit 9dc42f9

Please sign in to comment.