mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
26 lines
637 B
C#
26 lines
637 B
C#
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>();
|
|
}
|
|
}
|
|
}
|
|
} |