Skip to content

Commit 6d1bce5

Browse files
committed
- kleine Überarbeitung am Merger, damit er besser auf MacOS läuft
1 parent 116d3f9 commit 6d1bce5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

merger/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
id 'org.beryx.runtime' version '1.12.7'
77
}
88

9+
project.description = 'Fügt mehrere Kurswahlen in eine CSV Tabelle zusammen!'
10+
911
application {
1012
mainClass = "${group}.gui.GuiMain"
1113
}

merger/res/mac-merger.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
main-class=com.kurswahlApp.GeneratorKt
2-
arguments=--gui
2+
arguments=willi.json --gui
33
icon="../res/icons/app_icon.icns"

merger/settings.gradle

-1
This file was deleted.

merger/src/main/kotlin/Generator.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fun main(args: Array<String>) {
131131
output = chooser.selectedFile.absolutePath
132132
}
133133

134-
action = TYP.values().getOrElse(JOptionPane.showOptionDialog(null, "Aktion auswählen", "Auswählen", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, TYP.values(), TYP.CSV)
134+
action = TYP.entries.toTypedArray().getOrElse(JOptionPane.showOptionDialog(null, "Aktion auswählen", "Auswählen", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, TYP.values(), TYP.CSV)
135135
) { TYP.CSV }
136136

137137
try {

0 commit comments

Comments
 (0)