Skip to content

Commit d736ec9

Browse files
committed
fix radio button binding type
1 parent aed1d3e commit d736ec9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/me/cjcrafter/pygetset/GenerateToString.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ class GenerateToString : AnAction() {
4747
val panel = panel {
4848
buttonsGroup(title = "Template:") {
4949
row {
50-
radioButton("Table", ToStringTemplate.TABULAR_TEMPLATE.name)
51-
radioButton("JSON", ToStringTemplate.JSON_TEMPLATE.name)
50+
radioButton("Table", ToStringTemplate.TABULAR_TEMPLATE)
51+
radioButton("JSON", ToStringTemplate.JSON_TEMPLATE)
5252
}
53-
}.bind({ preview.model::template }, {
54-
preview.model.template = it.get()
53+
}.bind({ preview.model.template }, {
54+
preview.model.template = it
5555
})
5656

5757
row {

0 commit comments

Comments
 (0)