mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
rename
This commit is contained in:
26
Plugins/Wox.Plugin.Program/Programs/UnregisteredPrograms.cs
Normal file
26
Plugins/Wox.Plugin.Program/Programs/UnregisteredPrograms.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user