From 4540e9c9ebb89343acbdc22d7967b50beae3dd13 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 26 Dec 2019 20:30:18 -0600 Subject: [PATCH] Make sure Hide DS4 Controller checkbox is temporarily disabled after click --- DS4Windows/DS4Forms/MainWindow.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/MainWindow.xaml.cs b/DS4Windows/DS4Forms/MainWindow.xaml.cs index 21bfcd4..4132f9e 100644 --- a/DS4Windows/DS4Forms/MainWindow.xaml.cs +++ b/DS4Windows/DS4Forms/MainWindow.xaml.cs @@ -991,13 +991,15 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question private async void HideDS4ContCk_Click(object sender, RoutedEventArgs e) { StartStopBtn.IsEnabled = false; - bool checkStatus = hideDS4ContCk.IsChecked == true; + //bool checkStatus = hideDS4ContCk.IsChecked == true; + hideDS4ContCk.IsEnabled = false; await Task.Run(() => { App.rootHub.Stop(); App.rootHub.Start(); }); + hideDS4ContCk.IsEnabled = true; StartStopBtn.IsEnabled = true; }