mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-26 16:41:50 +01:00
Make sure Hide DS4 Controller checkbox is temporarily disabled after click
This commit is contained in:
parent
63dfd8e194
commit
4540e9c9eb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user