mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-04 11:59:07 +08:00
38 lines
990 B
C#
38 lines
990 B
C#
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",
|
|
Score = 40,
|
|
IcoPath = "Images/app.png",
|
|
Action = (contenxt) =>
|
|
{
|
|
context.OpenSettingDialog();
|
|
return true;
|
|
}
|
|
});
|
|
}
|
|
|
|
return results;
|
|
}
|
|
|
|
protected override void InitInternal(PluginInitContext context)
|
|
{
|
|
this.context = context;
|
|
}
|
|
}
|
|
}
|