From 13a6287dea660b15f72fce6586bee5e179c29993 Mon Sep 17 00:00:00 2001 From: Yu Leng <42196638+moooyo@users.noreply.github.com> Date: Fri, 9 May 2025 13:32:15 +0800 Subject: [PATCH] [cmdpal] Fix winget cannot install after clicking "install" button issue (#39324) init Co-authored-by: Yu Leng (from Dev Box) --- .../Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs index 06f55ccf02..fff845b0a9 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs @@ -128,7 +128,7 @@ public partial class CommandBarViewModel : ObservableObject, // this comes in when the primary button is tapped public void InvokePrimaryCommand() { - PerformCommand(SecondaryCommand); + PerformCommand(PrimaryCommand); } // this comes in when the secondary button is tapped