From 3b4ace3a17dbdad337fde71b2f4eb839c39ad364 Mon Sep 17 00:00:00 2001 From: Andres Pineda Date: Tue, 14 Jan 2025 16:19:46 -0500 Subject: [PATCH] fix: WinUI Packaged Window Title --- src/Resizetizer/src/WindowIconGeneratorTask.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Resizetizer/src/WindowIconGeneratorTask.cs b/src/Resizetizer/src/WindowIconGeneratorTask.cs index b39002f..a772ff6 100644 --- a/src/Resizetizer/src/WindowIconGeneratorTask.cs +++ b/src/Resizetizer/src/WindowIconGeneratorTask.cs @@ -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 }} }}