Skip to content

Commit ee526de

Browse files
author
LocalIdentity
committed
Fix negative values being wiped
Couldn't type a `-` character into the box without it being wiped
1 parent 0a9265e commit ee526de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/CompareTab.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ local function syncControlValue(ctrl, varData, val)
20692069
or varData.type == "countAllowZero" or varData.type == "float" then
20702070
local text = tostring(val or "")
20712071
-- avoid setting text every time as otherwise this clears user selections on every frame
2072-
if text ~= ctrl.buf then
2072+
if not ctrl.hasFocus and text ~= ctrl.buf then
20732073
ctrl:SetText(text)
20742074
end
20752075
elseif varData.type == "list" then

0 commit comments

Comments
 (0)