mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-13 16:49:08 +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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user