Wizard: trim paths in UI
#KT-36163 fixed
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ class PathFieldComponent(
|
|||||||
onValueUpdate
|
onValueUpdate
|
||||||
) {
|
) {
|
||||||
override val uiComponent: TextFieldWithBrowseButton = TextFieldWithBrowseButton(
|
override val uiComponent: TextFieldWithBrowseButton = TextFieldWithBrowseButton(
|
||||||
textField(initialValue?.toString().orEmpty()) { path -> fireValueUpdated(Paths.get(path)) }
|
textField(initialValue?.toString().orEmpty()) { path -> fireValueUpdated(Paths.get(path.trim())) }
|
||||||
).apply {
|
).apply {
|
||||||
addBrowseFolderListener(
|
addBrowseFolderListener(
|
||||||
TextBrowseFolderListener(
|
TextBrowseFolderListener(
|
||||||
@@ -45,5 +45,5 @@ class PathFieldComponent(
|
|||||||
uiComponent.text = newValue.toString()
|
uiComponent.text = newValue.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getUiValue(): Path = Paths.get(uiComponent.text)
|
override fun getUiValue(): Path = Paths.get(uiComponent.text.trim())
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user