mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Add clipboard plugin.
This commit is contained in:
@@ -35,7 +35,8 @@ namespace Wox.PluginLoader
|
||||
HideApp = App.Window.HideApp,
|
||||
ShowApp = () => App.Window.ShowApp(),
|
||||
ShowMsg = (title, subTitle, iconPath) => App.Window.ShowMsg(title, subTitle, iconPath),
|
||||
OpenSettingDialog = () => App.Window.OpenSettingDialog()
|
||||
OpenSettingDialog = () => App.Window.OpenSettingDialog(),
|
||||
ShowCurrentResultItemTooltip = (msg) => App.Window.ShowCurrentResultItemTooltip(msg)
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,11 @@ namespace Wox.PluginLoader
|
||||
PythonResult ps = pythonResult;
|
||||
if (!string.IsNullOrEmpty(ps.ActionName))
|
||||
{
|
||||
ps.Action = (context) => InvokeFunc(ps.ActionName, GetPythonActionContext(context), new PyString(ps.ActionPara));
|
||||
ps.Action = (context) =>
|
||||
{
|
||||
InvokeFunc(ps.ActionName, GetPythonActionContext(context), new PyString(ps.ActionPara));
|
||||
return true;
|
||||
};
|
||||
}
|
||||
r.Add(ps);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user