commit - 32987097d1ec6fcc39f2f3c9e01b0fe27056d3ff
commit + 0136c7f3483e8e3c7bd5dcc9f78978b00e7e192b
blob - 8dbf450eb2c15596129a602f1a977b45f45d3037
blob + 233c97c50effb10d9650c2daf9b6622f81e8c543
--- src/main/kotlin/dev/nezzontli/gotvcs/settings/GotConfigurable.kt
+++ src/main/kotlin/dev/nezzontli/gotvcs/settings/GotConfigurable.kt
override fun createComponent(): JComponent {
val binaryField = TextFieldWithBrowseButton().apply {
addBrowseFolderListener(
- "got Binary Path",
- "Leave empty to auto-detect (/run/current-system/sw/bin/got or PATH)",
null,
- FileChooserDescriptorFactory.createSingleFileDescriptor(),
+ FileChooserDescriptorFactory.singleFile()
+ .withTitle("got Binary Path")
+ .withDescription("Leave empty to auto-detect (/run/current-system/sw/bin/got or PATH)"),
)
}
val sockField = JTextField()