Files
PowerToys/Plugins/Wox.Plugin.Program/ProgramSources/UnregisteredPrograms.cs

26 lines
637 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.IO;
namespace Wox.Plugin.Program.ProgramSources
{
[Serializable]
2016-08-19 23:24:21 +01:00
public class UnregisteredPrograms : Win32
{
public string Location { get; set; } = "";
public override List<Program> LoadPrograms()
{
2016-08-19 20:34:20 +01:00
if (Directory.Exists(Location) && MaxDepth >= -1)
{
2016-08-19 20:34:20 +01:00
var apps = new List<Program>();
GetAppFromDirectory(apps, Location, MaxDepth);
2016-08-19 20:34:20 +01:00
return apps;
}
else
{
return new List<Program>();
}
}
}
}