This commit is contained in:
bao-qian
2016-08-19 23:25:36 +01:00
parent 8684788f1f
commit f32f37cfbb
9 changed files with 7 additions and 7 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>();
}
}
}
}