mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Revert last two commits pushed by @aaroncampf, which will cause build erros.
This commit is contained in:
@@ -1,39 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Wox.Plugin.SystemPlugins {
|
||||
namespace Wox.Plugin.SystemPlugins
|
||||
{
|
||||
|
||||
public abstract class BaseSystemPlugin : ISystemPlugin {
|
||||
public string PluginDirectory { get; set; }
|
||||
public virtual string Name { get { return "System workflow"; } }
|
||||
public virtual string Description { get { return "System workflow"; } }
|
||||
public virtual string IcoPath { get { return null; } }
|
||||
public virtual bool Enabled { get; set; }
|
||||
public abstract class BaseSystemPlugin : ISystemPlugin
|
||||
{
|
||||
public string PluginDirectory { get; set; }
|
||||
public virtual string Name { get { return "System workflow"; } }
|
||||
public virtual string Description { get { return "System workflow"; } }
|
||||
public virtual string IcoPath { get { return null; } }
|
||||
|
||||
protected abstract List<Result> QueryInternal(Query query);
|
||||
protected abstract void InitInternal(PluginInitContext context);
|
||||
protected abstract List<Result> QueryInternal(Query query);
|
||||
|
||||
protected abstract void InitInternal(PluginInitContext context);
|
||||
|
||||
public List<Result> Query(Query query)
|
||||
{
|
||||
if (string.IsNullOrEmpty(query.RawQuery)) return new List<Result>();
|
||||
return QueryInternal(query);
|
||||
}
|
||||
|
||||
public List<Result> Query(Query query) {
|
||||
if (Enabled && string.IsNullOrEmpty(query.RawQuery)) {
|
||||
//if (string.IsNullOrEmpty(query.RawQuery)) return new List<Result>();
|
||||
return QueryInternal(query);
|
||||
}
|
||||
else {
|
||||
new List<Result>();
|
||||
}
|
||||
}
|
||||
|
||||
public void Init(PluginInitContext context) {
|
||||
InitInternal(context);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Used to save settings
|
||||
/// </summary>
|
||||
public virtual string PluginId {
|
||||
get { return null; }
|
||||
}
|
||||
}
|
||||
public void Init(PluginInitContext context)
|
||||
{
|
||||
InitInternal(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user