make ParamHintString show range [-1,1] for send.amount

This commit is contained in:
2023-09-01 21:54:55 +03:00
parent 607e5b5da0
commit 98fedd0ed2
+2
View File
@@ -168,6 +168,8 @@ func (p Patch) ParamHintString(instrIndex, unitIndex int, param string) string {
}
case "send":
switch param {
case "amount":
return fmt.Sprintf("%.2f", float32(value)/64-1)
case "voice":
if value == 0 {
return "auto"