Don't overwrite values that are mid-edit in air alarm window (#40338)

This commit is contained in:
Absotively
2025-09-20 12:55:34 -06:00
committed by GitHub
parent 886b365099
commit a5129c141c

View File

@@ -30,8 +30,11 @@ public sealed partial class ThresholdBoundControl : BoxContainer
public void SetValue(float value) public void SetValue(float value)
{ {
_value = value; _value = value;
if (!CSpinner.HasKeyboardFocus())
{
CSpinner.Value = ScaledValue; CSpinner.Value = ScaledValue;
} }
}
public void SetEnabled(bool enabled) public void SetEnabled(bool enabled)
{ {