From e0097c94c67605e99d5db6137b7917af654acaca Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Wed, 20 Aug 2025 17:54:01 -0500 Subject: [PATCH] Adding app icon to run context menu item in all apps ext (#40991) Closes #40978 All apps extension's "Run" command now has the apps icon if available. image --- .../cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCommand.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCommand.cs b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCommand.cs index 4f26d45839..39e71f9a32 100644 --- a/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCommand.cs +++ b/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Apps/AppCommand.cs @@ -26,6 +26,11 @@ public sealed partial class AppCommand : InvokableCommand Name = Resources.run_command_action; Id = GenerateId(); + + if (!string.IsNullOrEmpty(app.IcoPath)) + { + Icon = new(app.IcoPath); + } } internal static async Task StartApp(string aumid)