mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Replace all obsoleted method
This commit is contained in:
@@ -53,8 +53,8 @@ namespace Wox.Plugin.BrowserBookmark
|
|||||||
Score = 5,
|
Score = 5,
|
||||||
Action = (e) =>
|
Action = (e) =>
|
||||||
{
|
{
|
||||||
context.HideApp();
|
context.API.HideApp();
|
||||||
context.ShellRun(c.Url);
|
context.API.ShellRun(c.Url);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace Wox.Plugin.PluginManagement
|
|||||||
{
|
{
|
||||||
Action = e =>
|
Action = e =>
|
||||||
{
|
{
|
||||||
context.ChangeQuery("wpm install ");
|
context.API.ChangeQuery("wpm install ");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -53,7 +53,7 @@ namespace Wox.Plugin.PluginManagement
|
|||||||
{
|
{
|
||||||
Action = e =>
|
Action = e =>
|
||||||
{
|
{
|
||||||
context.ChangeQuery("wpm uninstall ");
|
context.API.ChangeQuery("wpm uninstall ");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -61,7 +61,7 @@ namespace Wox.Plugin.PluginManagement
|
|||||||
{
|
{
|
||||||
Action = e =>
|
Action = e =>
|
||||||
{
|
{
|
||||||
context.ChangeQuery("wpm list");
|
context.API.ChangeQuery("wpm list");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -179,7 +179,7 @@ namespace Wox.Plugin.PluginManagement
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
context.StopLoadingBar();
|
context.API.StopLoadingBar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ namespace Wox.Plugin.SystemPlugins.CMD
|
|||||||
|
|
||||||
private void ExecuteCmd(string cmd)
|
private void ExecuteCmd(string cmd)
|
||||||
{
|
{
|
||||||
if (context.ShellRun(cmd))
|
if (context.API.ShellRun(cmd))
|
||||||
CMDStorage.Instance.AddCmdHistory(cmd);
|
CMDStorage.Instance.AddCmdHistory(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ namespace Wox.Plugin.SystemPlugins.Program
|
|||||||
Score = 0,
|
Score = 0,
|
||||||
Action = (e) =>
|
Action = (e) =>
|
||||||
{
|
{
|
||||||
context.HideApp();
|
context.API.HideApp();
|
||||||
context.ShellRun(c.ExecutePath);
|
context.API.ShellRun(c.ExecutePath);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace Wox.Plugin.SystemPlugins
|
|||||||
IcoPath = "Images/work.png",
|
IcoPath = "Images/work.png",
|
||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
context.ChangeQuery(metadataCopy.ActionKeyword + " ");
|
context.API.ChangeQuery(metadataCopy.ActionKeyword + " ");
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -54,7 +54,7 @@ namespace Wox.Plugin.SystemPlugins
|
|||||||
IcoPath = "Images/work.png",
|
IcoPath = "Images/work.png",
|
||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
context.ChangeQuery(n.ActionWord + " ");
|
context.API.ChangeQuery(n.ActionWord + " ");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user