config: show more user friendly names of custom types in ui

This commit is contained in:
albertony 2024-03-29 16:23:42 +01:00
parent 0f6c10ca02
commit 9c9487365f

View File

@ -495,7 +495,7 @@ func ChooseOption(o *fs.Option, name string) string {
case uint, byte, uint16, uint32, uint64:
what = "unsigned integer"
default:
what = fmt.Sprintf("%T value", o.Default)
what = fmt.Sprintf("value of type %s", o.Type())
}
}
var in string