This commit is contained in:
bao-qian
2016-08-19 23:25:13 +01:00
parent 9e033d1673
commit 8684788f1f
4 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.IO;
namespace Wox.Plugin.Program.ProgramSources
{
[Serializable]
public class UnregisteredPrograms : Win32
{
public string Location { get; set; } = "";
public override List<Program> LoadPrograms()
{
if (Directory.Exists(Location) && MaxDepth >= -1)
{
var apps = new List<Program>();
GetAppFromDirectory(apps, Location, MaxDepth);
return apps;
}
else
{
return new List<Program>();
}
}
}
}