Skip to content

Commit

Permalink
fix: WinUI Packaged Window Title
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Jan 14, 2025
1 parent 3129483 commit 3b4ace3
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 3b4ace3

Please sign in to comment.