mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
added protection when creating uwp
This commit is contained in:
parent
e35ad892eb
commit
d2ca74ecdf
1 changed files with 13 additions and 4 deletions
|
|
@ -196,11 +196,20 @@ namespace Wox.Plugin.Program.Programs
|
||||||
ps = ps.Where(p =>
|
ps = ps.Where(p =>
|
||||||
{
|
{
|
||||||
bool valid;
|
bool valid;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var f = p.IsFramework;
|
||||||
|
var d = p.IsDevelopmentMode;
|
||||||
|
var path = p.InstalledLocation.Path;
|
||||||
|
valid = !f && !d && !string.IsNullOrEmpty(path);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
ProgramLogger.LogException("|UWP|CurrentUserPackages|An unexpected error occured and "
|
||||||
|
+ $"unable to verify if package is valid", e);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var f = p.IsFramework;
|
|
||||||
var d = p.IsDevelopmentMode;
|
|
||||||
var path = p.InstalledLocation.Path;
|
|
||||||
valid = !f && !d && !string.IsNullOrEmpty(path);
|
|
||||||
|
|
||||||
return valid;
|
return valid;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue