Skip to content

Commit

Permalink
Merge pull request #325 from unoplatform/fix/wui.window.title
Browse files Browse the repository at this point in the history
fix: WinUI Packaged Window Title
  • Loading branch information
ajpinedam authored Jan 16, 2025
2 parents a8e88c2 + 3b4ace3 commit 79cb5f7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Resizetizer/src/WindowIconGeneratorTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,10 @@ public static void SetWindowIcon(this global::Microsoft.UI.Xaml.Window window)
appWindow.SetIcon(""{iconName}.ico"");
// Set the Window Title Only if it has the Default WinUI Desktop value and we are running Unpackaged
if (!IsPackaged() && appWindow.Title == ""WinUI Desktop"")
if (appWindow.Title == ""WinUI Desktop"")
{{
appWindow.Title = ""{WindowTitle}"";
}}
static bool IsPackaged()
{{
#if WINAPPSDK_PACKAGED // Defined in the Uno.Sdk for WinAppSDK Packaged apps.
return true;
#else
return false;
#endif
}}
#endif
}}
}}
Expand Down

0 comments on commit 79cb5f7

Please sign in to comment.