mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
@@ -10,7 +10,8 @@ namespace Wox.Plugin.Program
|
|||||||
public string Type { get; set; }
|
public string Type { get; set; }
|
||||||
public int BonusPoints { get; set; }
|
public int BonusPoints { get; set; }
|
||||||
public bool Enabled { get; set; }
|
public bool Enabled { get; set; }
|
||||||
public string[] Suffixes { get; set; }
|
// happlebao todo: temp hack for program suffixes
|
||||||
|
public string[] Suffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};
|
||||||
public const char SuffixSeperator = ';';
|
public const char SuffixSeperator = ';';
|
||||||
public int MaxDepth { get; set; }
|
public int MaxDepth { get; set; }
|
||||||
public Dictionary<string, string> Meta { get; set; }
|
public Dictionary<string, string> Meta { get; set; }
|
||||||
|
|||||||
@@ -107,8 +107,6 @@ namespace Wox.Plugin.Program
|
|||||||
{
|
{
|
||||||
sources.AddRange(_settings.ProgramSources);
|
sources.AddRange(_settings.ProgramSources);
|
||||||
}
|
}
|
||||||
// happlebao todo: temp hack for program suffixes
|
|
||||||
sources.AsParallel().ForAll(s => { s.Suffixes = _settings.ProgramSuffixes; });
|
|
||||||
|
|
||||||
_sources = sources.AsParallel()
|
_sources = sources.AsParallel()
|
||||||
.Where(s => s.Enabled && SourceTypes.ContainsKey(s.Type))
|
.Where(s => s.Enabled && SourceTypes.ContainsKey(s.Type))
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace Wox.Plugin.Program
|
|||||||
var text = value as string[];
|
var text = value as string[];
|
||||||
if (text != null)
|
if (text != null)
|
||||||
{
|
{
|
||||||
return string.Join("", text);
|
return string.Join(";", text);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user