mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 23:39:29 +02:00
- Remove unnecessary code
- Execute `OnValueChanged` event in task
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DesktopMagicPluginAPI.Inputs
|
||||
@@ -48,7 +45,7 @@ namespace DesktopMagicPluginAPI.Inputs
|
||||
/// </summary>
|
||||
public void Click()
|
||||
{
|
||||
OnClick?.Invoke();
|
||||
_ = Task.Run(() => OnClick?.Invoke());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user