Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
wyskoj committed Apr 2, 2022
2 parents e1f66a2 + 5851dd8 commit 7e9a4fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ Development contributors:

Internationalization:

* Mr. Tremolo Measure
* ES — Mr. Tremolo Measure
* RU — https://github.com/rxuglr[rxuglr]

== ⁉️ Support

Expand Down
10 changes: 6 additions & 4 deletions src/main/kotlin/org/wysko/midis2jam2/gui/Launcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ fun Launcher() {
Properties().apply {
setProperty("midi_file", selectedMidiFile)
setProperty("midi_device", selectedMidiDevice)
setProperty("soundfont",
launcherState.soundfonts.map { File(it) }
.first { it.name == soundFonts[selectedSoundFont] }.absolutePath
)
if (soundFonts[selectedSoundFont] != "Default SoundFont") {
setProperty("soundfont",
launcherState.soundfonts.map { File(it) }
.first { it.name == soundFonts[selectedSoundFont] }.absolutePath
)
}
},
onStart = {
freeze = true
Expand Down

0 comments on commit 7e9a4fe

Please sign in to comment.