From 3bb92a0b24f69b903a7c6ac301cb8b48532c77d7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 22 Sep 2019 20:31:18 -0500 Subject: [PATCH] Fix the visible threshold sliders not updating when enabled panels are changed. --- smx-config/MainWindow.xaml | 3 ++- smx-config/MainWindow.xaml.cs | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/smx-config/MainWindow.xaml b/smx-config/MainWindow.xaml index 014e633..94f884d 100644 --- a/smx-config/MainWindow.xaml +++ b/smx-config/MainWindow.xaml @@ -725,7 +725,8 @@ Use if the platform is too sensitive. HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="15" Margin="0 0 0 10" /> - + diff --git a/smx-config/MainWindow.xaml.cs b/smx-config/MainWindow.xaml.cs index da3f0a0..4ddde3f 100644 --- a/smx-config/MainWindow.xaml.cs +++ b/smx-config/MainWindow.xaml.cs @@ -652,5 +652,12 @@ namespace smx_config return IntPtr.Zero; } + + private void MainTab_Selected(object sender, RoutedEventArgs e) + { + // Refresh the threshold sliders, in case the enabled panels were changed + // on the advanced tab. + CreateThresholdSliders(); + } } }