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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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