Check InvokeRequired from form object

Such a headache over a minor portion of code. Fuck .NET
This commit is contained in:
Travis Nickles 2017-12-08 05:04:08 -06:00
parent 852a9fe524
commit be8bc83253

View File

@ -854,7 +854,7 @@ namespace DS4Windows
protected void LogDebug(DateTime Time, String Data, bool warning)
{
if (lvDebug.InvokeRequired)
if (this.InvokeRequired)
{
LogDebugDelegate d = new LogDebugDelegate(LogDebug);
try
@ -1152,7 +1152,7 @@ namespace DS4Windows
protected void DeviceSerialChanged(object sender, SerialChangeArgs args)
{
if (InvokeRequired)
if (this.InvokeRequired)
{
DeviceSerialChangedDelegate d = new DeviceSerialChangedDelegate(DeviceSerialChanged);
this.BeginInvoke(d, new object[] { sender, args });