Skip to content

Commit

Permalink
chore: revert naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jun 18, 2024
1 parent 789eeb1 commit 18915f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Resizetizer/src/GeneratePackageAppxManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void UpdateManifest(XDocument appx)
var appIconInfo = AppIcon?.Length > 0 ? ResizeImageInfo.Parse(AppIcon[0]) : null;
var splashInfo = SplashScreen?.Length > 0 ? ResizeImageInfo.Parse(SplashScreen[0]) : null;

var uapXmlns = appx.Root.Attributes()
var xmlnsUap = appx.Root.Attributes()
.Where(a => a.IsNamespaceDeclaration && a.Value == UapNamespace)
.Select(a => XNamespace.Get(a.Value))
.FirstOrDefault();
Expand Down Expand Up @@ -195,7 +195,7 @@ void UpdateManifest(XDocument appx)
}

// <uap:VisualElements>
var xvisual = uapXmlns + "VisualElements";
var xvisual = xmlnsUap + "VisualElements";
var visual = application.Element(xvisual);
if (visual == null)
{
Expand All @@ -204,7 +204,7 @@ void UpdateManifest(XDocument appx)
}

// <uap:DefaultTile>
var xtile = uapXmlns + "DefaultTile";
var xtile = xmlnsUap + "DefaultTile";
var tile = visual.Element(xtile);
if (tile == null)
{
Expand All @@ -213,7 +213,7 @@ void UpdateManifest(XDocument appx)
}

// <uap:ShowNameOnTiles>
var xshowname = uapXmlns + "ShowNameOnTiles";
var xshowname = xmlnsUap + "ShowNameOnTiles";
var showname = tile.Element(xshowname);
if (showname == null)
{
Expand Down Expand Up @@ -256,7 +256,7 @@ void UpdateManifest(XDocument appx)
if (splashInfo != null)
{
// <uap:SplashScreen>
var xsplash = uapXmlns + "SplashScreen";
var xsplash = xmlnsUap + "SplashScreen";
var splash = visual.Element(xsplash);
if (splash == null)
{
Expand Down

0 comments on commit 18915f1

Please sign in to comment.