From cc210488538c84fef1a3c37fbab90bd0a98005a3 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Sun, 9 Aug 2026 22:45:40 +0200 Subject: [PATCH] Gate and reset the cadence-warn box like every threshold box (nightly catch) The AlertSettingsControlWiringTests source-scan caught what PR CI's fast path missed: AlertStoreJobCadenceWarnPercentBox was loaded from the store but absent from UpdateAlertControlStates (unchecking Alerts Enabled left it editable) and from RestoreAlertDefaultsButton_Click (Restore Defaults left a stale value). Both call sites added, matching its #2107 siblings. Co-Authored-By: Claude Fable 5 --- .../PerformanceMonitor.Darling.Viewer/SettingsWindow.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Darling/PerformanceMonitor.Darling.Viewer/SettingsWindow.xaml.cs b/Darling/PerformanceMonitor.Darling.Viewer/SettingsWindow.xaml.cs index a2a6982c8b..33a0bb717a 100644 --- a/Darling/PerformanceMonitor.Darling.Viewer/SettingsWindow.xaml.cs +++ b/Darling/PerformanceMonitor.Darling.Viewer/SettingsWindow.xaml.cs @@ -892,6 +892,7 @@ private void RestoreAlertDefaultsButton_Click(object sender, RoutedEventArgs e) AlertSelfDiskWarnPercentBox.Text = "10"; AlertCollectionStaleMinutesBox.Text = "30"; AlertCollectionFailureThresholdBox.Text = "10"; + AlertStoreJobCadenceWarnPercentBox.Text = "25"; AnalysisNotifyCooldownBox.Text = "360"; AlertPvsThresholdPercentBox.Text = "40"; AlertPvsFloorGbBox.Text = "1"; @@ -1000,6 +1001,7 @@ private void UpdateAlertControlStates() AlertSelfDiskWarnPercentBox.IsEnabled = enabled; AlertCollectionStaleMinutesBox.IsEnabled = enabled; AlertCollectionFailureThresholdBox.IsEnabled = enabled; + AlertStoreJobCadenceWarnPercentBox.IsEnabled = enabled; AlertLongRunningJobCheckBox.IsEnabled = enabled; AlertLongRunningJobMultiplierBox.IsEnabled = enabled; AlertFailedJobCheckBox.IsEnabled = enabled;