Delay execution of service start

This commit is contained in:
Travis Nickles 2018-08-17 15:11:46 -05:00
parent 41ebb0d716
commit 39762a361a

View File

@ -275,9 +275,6 @@ namespace DS4Windows
hotkeysTimer.Start();
}
if (btnStartStop.Enabled && start)
BtnStartStop_Clicked();
startToolStripMenuItem.Text = btnStartStop.Text;
cBoxNotifications.SelectedIndex = Notifications;
cBSwipeProfiles.Checked = SwipeProfiles;
@ -398,6 +395,9 @@ namespace DS4Windows
control.MouseHover += ClearLastMessage;
}
}
if (btnStartStop.Enabled && start)
TaskRunner.Delay(10).ContinueWith((t) => this.BeginInvoke((System.Action)(() => BtnStartStop_Clicked())));
}
private void populateHoverTextDict()