mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
Including valid package information when path is invalid. This is needed because the path will be invalid when uninstalling an application, but we still need the other information to remove it from the currently indexed list of uwp/packaged applications. (#5373)
This commit is contained in:
committed by
GitHub
parent
d9fd967c48
commit
4da8aab44f
@@ -41,7 +41,13 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
catch (Exception e) when (e is ArgumentException || e is FileNotFoundException)
|
||||
{
|
||||
ProgramLogger.LogException($"PackageWrapper", "GetWrapperFromPackage", "package.InstalledLocation.Path", $"Exception {package.Id.Name}", e);
|
||||
return new PackageWrapper();
|
||||
return new PackageWrapper(
|
||||
package.Id.Name,
|
||||
package.Id.FullName,
|
||||
package.Id.FamilyName,
|
||||
package.IsFramework,
|
||||
package.IsDevelopmentMode,
|
||||
string.Empty);
|
||||
}
|
||||
|
||||
return new PackageWrapper(
|
||||
|
||||
Reference in New Issue
Block a user