mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 19:14:20 +01:00
Check InvokeRequired from form object
Such a headache over a minor portion of code. Fuck .NET
This commit is contained in:
parent
852a9fe524
commit
be8bc83253
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user