]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't overwrite values that are mid-edit in air alarm window (#40338)
authorAbsotively <jen@jenpollock.ca>
Sat, 20 Sep 2025 18:55:34 +0000 (12:55 -0600)
committerGitHub <noreply@github.com>
Sat, 20 Sep 2025 18:55:34 +0000 (11:55 -0700)
Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs

index 55f7c008987bd63fddfb83d3cef1983e461ddcbb..38c631e6304301ed0a643b469d5cc17bca1245d1 100644 (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)