mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Fix a programs bug if custom program folder is not exist.
This commit is contained in:
@@ -30,8 +30,10 @@ namespace Wox.Plugin.SystemPlugins.Program.ProgramSources
|
||||
public override List<Program> LoadPrograms()
|
||||
{
|
||||
List<Program> list = new List<Program>();
|
||||
GetAppFromDirectory(BaseDirectory, list);
|
||||
|
||||
if (Directory.Exists(BaseDirectory))
|
||||
{
|
||||
GetAppFromDirectory(BaseDirectory, list);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user