Skip to content

Commit

Permalink
Restoring checks for invalid uwp apps based on PR feedback. This was …
Browse files Browse the repository at this point in the history
…accidentally removed when moving the initialize outside the constructor.
  • Loading branch information
ryanbodrug-microsoft committed Jul 9, 2020
1 parent 1c72428 commit 0e8c1cb
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,17 @@ public void InitializeAppInfo(string installedLocation)
{
var app = new Application(_app, this);
apps.Add(app);
}

Apps = apps.Where(a => a.AppListEntry != "none").ToArray();
}

Apps = apps.Where(a =>
{
var valid =
!string.IsNullOrEmpty(a.UserModelId) &&
!string.IsNullOrEmpty(a.DisplayName) &&
a.AppListEntry != "none";
return valid;
}).ToArray();
}
else
{
Expand Down

0 comments on commit 0e8c1cb

Please sign in to comment.