mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Add drop event.
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Windows.Forms;
|
||||
using Newtonsoft.Json;
|
||||
using Wox.Infrastructure.Logger;
|
||||
using Wox.Plugin;
|
||||
using Wox.Core.Exception;
|
||||
|
||||
namespace Wox.Core.Plugin
|
||||
{
|
||||
@@ -83,7 +84,7 @@ namespace Wox.Core.Plugin
|
||||
private void ExecuteWoxAPI(string method, object[] parameters)
|
||||
{
|
||||
MethodInfo methodInfo = PluginManager.API.GetType().GetMethod(method);
|
||||
if (methodInfo != null)
|
||||
if (methodInfo != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -141,8 +142,7 @@ namespace Wox.Core.Plugin
|
||||
string error = errorReader.ReadToEnd();
|
||||
if (!string.IsNullOrEmpty(error))
|
||||
{
|
||||
//todo:
|
||||
// ErrorReporting.TryShowErrorMessageBox(error, new WoxJsonRPCException(error));
|
||||
throw new WoxJsonRPCException(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -151,9 +151,9 @@ namespace Wox.Core.Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
catch(System.Exception e)
|
||||
{
|
||||
return null;
|
||||
throw new WoxJsonRPCException(e.Message);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user