mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Merge branch 'dev'
This commit is contained in:
@@ -412,42 +412,6 @@ namespace Wox
|
||||
if (selectAll) tbQuery.SelectAll();
|
||||
}
|
||||
|
||||
public void ParseArgs(string[] args)
|
||||
{
|
||||
if (args != null && args.Length > 0)
|
||||
{
|
||||
switch (args[0].ToLower())
|
||||
{
|
||||
case "reloadplugin":
|
||||
Plugins.Init();
|
||||
break;
|
||||
|
||||
case "query":
|
||||
if (args.Length > 1)
|
||||
{
|
||||
string query = args[1];
|
||||
tbQuery.Text = query;
|
||||
tbQuery.SelectAll();
|
||||
}
|
||||
break;
|
||||
|
||||
case "hidestart":
|
||||
HideApp();
|
||||
break;
|
||||
|
||||
case "installplugin":
|
||||
var path = args[1];
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
MessageBox.Show("Plugin " + path + " didn't exist");
|
||||
return;
|
||||
}
|
||||
PluginInstaller.Install(path);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void MainWindow_OnDeactivated(object sender, EventArgs e)
|
||||
{
|
||||
if (UserSettingStorage.Instance.HideWhenDeactive)
|
||||
|
||||
Reference in New Issue
Block a user