mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
26 lines
No EOL
637 B
C#
26 lines
No EOL
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>();
|
|
}
|
|
}
|
|
}
|
|
} |