Skip to content

Commit

Permalink
remember audio file location for file chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Nov 21, 2021
1 parent c7f39ed commit bdea12c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 192,9 @@ class AudioField() : HBox(5.0) {
// TODO: configure as appropriate
audioFileChooser.showOpenDialog(null)?.let { file ->
field.text = File.separatorChar "assets" file.absolutePath.toString().substringAfter("assets")

// remember dir
audioFileChooser.initialDirectory = file.parentFile
}
}

Expand Down

0 comments on commit bdea12c

Please sign in to comment.