mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #482 from pc223/fix-ambiguous-match-plugin-api
Fix AmbiguousMatchException when plugins call Flow API (JsonRPC)
This commit is contained in:
commit
6b3f2e2ccf
1 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
|
|
@ -128,7 +129,8 @@ namespace Flow.Launcher.Core.Plugin
|
|||
|
||||
private void ExecuteFlowLauncherAPI(string method, object[] parameters)
|
||||
{
|
||||
MethodInfo methodInfo = PluginManager.API.GetType().GetMethod(method);
|
||||
var parametersTypeArray = parameters.Select(param => param.GetType()).ToArray();
|
||||
MethodInfo methodInfo = PluginManager.API.GetType().GetMethod(method, parametersTypeArray);
|
||||
if (methodInfo != null)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in a new issue