[fix] Fixed string setting typing initial value

This commit is contained in:
Xiaro 2021-01-12 10:17:41 -05:00
parent 087f76e075
commit 226db7af93
No known key found for this signature in database
GPG Key ID: 996D265D6E155377
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class StringButton(val setting: StringSetting) : BooleanSlider(setting.name, 1.0
if (buttonId == 1) {
if (!listening) {
listening = true
name = value.toString()
name = setting.value
value = 0.0
} else {
onStopListening(false)