mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Rename the project.
This commit is contained in:
33
Wox.Plugin.System/Setting.cs
Normal file
33
Wox.Plugin.System/Setting.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Wox.Plugin.System
|
||||
{
|
||||
public class Setting : BaseSystemPlugin
|
||||
{
|
||||
private PluginInitContext context;
|
||||
protected override List<Result> QueryInternal(Query query)
|
||||
{
|
||||
List<Result> results = new List<Result>();
|
||||
if ("setting".Contains(query.RawQuery.ToLower()))
|
||||
{
|
||||
results.Add(new Result()
|
||||
{
|
||||
Title = "Wox Setting Dialog",
|
||||
Score = 100,
|
||||
IcoPath = "Images/app.png",
|
||||
Action = () => context.OpenSettingDialog()
|
||||
});
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
protected override void InitInternal(PluginInitContext context)
|
||||
{
|
||||
this.context = context;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user