mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
d416a77866
fix program suffixes
25 lines
734 B
C#
25 lines
734 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Wox.Plugin.Program
|
|
{
|
|
[Serializable]
|
|
public class ProgramSource
|
|
{
|
|
public string Location { get; set; }
|
|
public string Type { get; set; }
|
|
public int BonusPoints { get; set; }
|
|
public bool Enabled { get; set; }
|
|
// happlebao todo: temp hack for program suffixes
|
|
public string[] Suffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};
|
|
public const char SuffixSeperator = ';';
|
|
public int MaxDepth { get; set; }
|
|
public Dictionary<string, string> Meta { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return (Type ?? "") + ":" + Location ?? "";
|
|
}
|
|
}
|
|
}
|