From: Absotively Date: Sat, 20 Sep 2025 18:55:34 +0000 (-0600) Subject: Don't overwrite values that are mid-edit in air alarm window (#40338) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=a5129c141c91a5358c8d2990d152b142fe8cdf37;p=space-station-14.git Don't overwrite values that are mid-edit in air alarm window (#40338) --- diff --git a/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs b/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs index 55f7c00898..38c631e630 100644 --- a/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdBoundControl.xaml.cs @@ -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)