diff --git a/Plugins/Wox.Plugin.BrowserBookmark/Main.cs b/Plugins/Wox.Plugin.BrowserBookmark/Main.cs index 6a61d5b459..11aa3f9f2f 100644 --- a/Plugins/Wox.Plugin.BrowserBookmark/Main.cs +++ b/Plugins/Wox.Plugin.BrowserBookmark/Main.cs @@ -53,8 +53,8 @@ namespace Wox.Plugin.BrowserBookmark Score = 5, Action = (e) => { - context.HideApp(); - context.ShellRun(c.Url); + context.API.HideApp(); + context.API.ShellRun(c.Url); return true; } }).ToList(); diff --git a/Plugins/Wox.Plugin.PluginManagement/Main.cs b/Plugins/Wox.Plugin.PluginManagement/Main.cs index 7e089f611b..ff5081424a 100644 --- a/Plugins/Wox.Plugin.PluginManagement/Main.cs +++ b/Plugins/Wox.Plugin.PluginManagement/Main.cs @@ -45,7 +45,7 @@ namespace Wox.Plugin.PluginManagement { Action = e => { - context.ChangeQuery("wpm install "); + context.API.ChangeQuery("wpm install "); return false; } }); @@ -53,7 +53,7 @@ namespace Wox.Plugin.PluginManagement { Action = e => { - context.ChangeQuery("wpm uninstall "); + context.API.ChangeQuery("wpm uninstall "); return false; } }); @@ -61,7 +61,7 @@ namespace Wox.Plugin.PluginManagement { Action = e => { - context.ChangeQuery("wpm list"); + context.API.ChangeQuery("wpm list"); return false; } }); @@ -179,7 +179,7 @@ namespace Wox.Plugin.PluginManagement } finally { - context.StopLoadingBar(); + context.API.StopLoadingBar(); } } }); diff --git a/Wox.Plugin.SystemPlugins/CMD/CMD.cs b/Wox.Plugin.SystemPlugins/CMD/CMD.cs index 9d112aa1e3..65540248ea 100644 --- a/Wox.Plugin.SystemPlugins/CMD/CMD.cs +++ b/Wox.Plugin.SystemPlugins/CMD/CMD.cs @@ -140,7 +140,7 @@ namespace Wox.Plugin.SystemPlugins.CMD private void ExecuteCmd(string cmd) { - if (context.ShellRun(cmd)) + if (context.API.ShellRun(cmd)) CMDStorage.Instance.AddCmdHistory(cmd); } diff --git a/Wox.Plugin.SystemPlugins/Program/Programs.cs b/Wox.Plugin.SystemPlugins/Program/Programs.cs index aee98f353d..38dfa626c2 100644 --- a/Wox.Plugin.SystemPlugins/Program/Programs.cs +++ b/Wox.Plugin.SystemPlugins/Program/Programs.cs @@ -68,8 +68,8 @@ namespace Wox.Plugin.SystemPlugins.Program Score = 0, Action = (e) => { - context.HideApp(); - context.ShellRun(c.ExecutePath); + context.API.HideApp(); + context.API.ShellRun(c.ExecutePath); return true; } }).ToList(); diff --git a/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs b/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs index 1a501b5484..ee53b5f86d 100644 --- a/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs +++ b/Wox.Plugin.SystemPlugins/ThirdpartyPluginIndicator.cs @@ -38,7 +38,7 @@ namespace Wox.Plugin.SystemPlugins IcoPath = "Images/work.png", Action = (c) => { - context.ChangeQuery(metadataCopy.ActionKeyword + " "); + context.API.ChangeQuery(metadataCopy.ActionKeyword + " "); return false; }, }; @@ -54,7 +54,7 @@ namespace Wox.Plugin.SystemPlugins IcoPath = "Images/work.png", Action = (c) => { - context.ChangeQuery(n.ActionWord + " "); + context.API.ChangeQuery(n.ActionWord + " "); return false; } }));