Add delay to background process start

This commit is contained in:
Travis Nickles 2020-04-01 21:34:20 -05:00
parent 033e3f0c29
commit 688c5348e2

View File

@ -129,6 +129,11 @@ namespace DS4WinWPF.DS4Forms
CheckDrivers(); CheckDrivers();
if (!parser.Stop) if (!parser.Stop)
{ {
Dispatcher.BeginInvoke((Action)(() =>
{
StartStopBtn.IsEnabled = false;
}));
Thread.Sleep(500);
App.rootHub.Start(); App.rootHub.Start();
//root.rootHubtest.Start(); //root.rootHubtest.Start();
} }