Fix toggling Hide DS4 Controller option

This commit is contained in:
Travis Nickles 2017-10-12 21:15:42 -05:00
parent 0c303a091a
commit ed09317f14

View File

@ -1544,9 +1544,33 @@ namespace DS4Windows
if (Environment.OSVersion.Version.Major >= 10 && Environment.OSVersion.Version.Build < 10586) if (Environment.OSVersion.Version.Major >= 10 && Environment.OSVersion.Version.Build < 10586)
btnConnectDS4Win10.Visible = exclusiveMode; btnConnectDS4Win10.Visible = exclusiveMode;
btnStartStop_Clicked(false); hideDS4CheckBox.Enabled = false;
btnStartStop_Clicked(false);
Save(); Save();
btnStartStop_Clicked(false);
finishHideDS4CheckBox();
}
private async void finishHideDS4CheckBox()
{
await TaskRunner.Factory.StartNew(() =>
{
while (changingService)
{
Thread.Sleep(10);
}
});
btnStartStop_Clicked(false);
await TaskRunner.Factory.StartNew(() =>
{
while (changingService)
{
Thread.Sleep(10);
}
});
hideDS4CheckBox.Enabled = true;
} }
private void startMinimizedCheckBox_CheckedChanged(object sender, EventArgs e) private void startMinimizedCheckBox_CheckedChanged(object sender, EventArgs e)