Make sure Hide DS4 Controller checkbox is temporarily disabled after click

This commit is contained in:
Travis Nickles 2019-12-26 20:30:18 -06:00
parent 63dfd8e194
commit 4540e9c9eb

View File

@ -991,13 +991,15 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question
private async void HideDS4ContCk_Click(object sender, RoutedEventArgs e) private async void HideDS4ContCk_Click(object sender, RoutedEventArgs e)
{ {
StartStopBtn.IsEnabled = false; StartStopBtn.IsEnabled = false;
bool checkStatus = hideDS4ContCk.IsChecked == true; //bool checkStatus = hideDS4ContCk.IsChecked == true;
hideDS4ContCk.IsEnabled = false;
await Task.Run(() => await Task.Run(() =>
{ {
App.rootHub.Stop(); App.rootHub.Stop();
App.rootHub.Start(); App.rootHub.Start();
}); });
hideDS4ContCk.IsEnabled = true;
StartStopBtn.IsEnabled = true; StartStopBtn.IsEnabled = true;
} }