Skip to content

Commit

Permalink
chore: improve code quality after 15fa6db
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeblevins committed Jan 29, 2024
1 parent 3193ae6 commit 4e8d971
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Resizetizer/src/GeneratePackageAppxManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,17 @@ void UpdateManifest(XDocument appx)
}

// <DisplayName>
var xDisplayName = xmlns + "DisplayName";
var xDisplayNameElem = properties.Element(xDisplayName);

var xdisplayname = xmlns + "DisplayName";
if (!string.IsNullOrEmpty(ApplicationTitle))
{
if (xDisplayNameElem == null || string.IsNullOrEmpty(xDisplayNameElem.Value) || xDisplayNameElem.Value == DefaultPlaceholder)
var xelem = properties.Element(xdisplayname);
if (xelem == null || string.IsNullOrEmpty(xelem.Value) || xelem.Value == DefaultPlaceholder)
{
properties.SetElementValue(xDisplayName, ApplicationTitle);
properties.SetElementValue(xdisplayname, ApplicationTitle);
}
}

DisplayName = properties.Element(xDisplayName).Value;
DisplayName = properties.Element(xdisplayname).Value;

// <Logo>
if (appIconInfo != null)
Expand Down

0 comments on commit 4e8d971

Please sign in to comment.