Skip to content

Commit 5094db2

Browse files
committed
Added extra check when loading in the apps. So that when rogue folders are placed in the applications folder the script doesn't crash
1 parent 9dd65cc commit 5094db2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Low Code App Editor_1/Low Code App Editor_1.cs

+7
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,13 @@ private List<App> LoadApps()
484484

485485
foreach (string folder in folders)
486486
{
487+
var appInfoFilePath = Path.Combine(folder, "App.info.json");
488+
if (!File.Exists(appInfoFilePath))
489+
{
490+
// If the App.info.json file is not in the folder, then it's most likely not a Low Code App
491+
continue;
492+
}
493+
487494
apps.Add(new App(folder, engine));
488495
}
489496

0 commit comments

Comments
 (0)