1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-19 01:37:39 +00:00

ui improvements - disable shell scrolling

This commit is contained in:
kepler155c@gmail.com
2018-10-24 06:50:16 -04:00
parent adc5eb286d
commit 605e923d48
3 changed files with 8 additions and 2 deletions

View File

@@ -3261,6 +3261,8 @@ function UI.Form:save()
if (child.pruneEmpty and type(child.value) == 'string' and #child.value == 0) or
(child.pruneEmpty and type(child.value) == 'boolean' and not child.value) then
self.values[child.formKey] = nil
elseif child.validate == 'numeric' then
self.values[child.formKey] = tonumber(child.value)
else
self.values[child.formKey] = child.value
end