From f1f1be778bc729548e3331d7f222939d4ec8371e Mon Sep 17 00:00:00 2001 From: Gregor Klevze Date: Thu, 13 Aug 2026 16:38:12 +0200 Subject: [PATCH] Fix missing taskbar/Alt+Tab icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AppWindow.SetIcon(executablePath) was passing the .exe's own path, but that API requires an actual .ico file path — passing an .exe silently does nothing, so the window fell back to a generic placeholder icon in the taskbar and Alt+Tab (the custom title bar icon fixed earlier is a separate, XAML-drawn Image and was unaffected). Embed branding/AmiReel.ico as a resource, extract it once to %LOCALAPPDATA%\AmiReel\app-icon.ico on startup, and call AppWindow.SetIcon() with that file path instead. Verified via WM_GETICON against the running window's HWND that both the big and small icons now resolve to the real AmiReel logo. Co-Authored-By: Claude Sonnet 5 --- AmiReel.csproj | 4 ++++ MainWindow.xaml.cs | 37 +++++++++++++++++++++++++++++++++---- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/AmiReel.csproj b/AmiReel.csproj index 78d3d0b..596d6b2 100644 --- a/AmiReel.csproj +++ b/AmiReel.csproj @@ -51,6 +51,10 @@ which a single-file self-contained publish bundles into the exe in a way that ms-appx:// can no longer resolve at runtime — this embedded copy sidesteps that entirely. --> + +