diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs index fff845b0a9..6fcd738e4e 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/CommandBarViewModel.cs @@ -155,6 +155,7 @@ public partial class CommandBarViewModel : ObservableObject, ContextMenuStack.Add(new ContextMenuStackViewModel(command)); OnPropertyChanging(nameof(ContextMenu)); OnPropertyChanged(nameof(ContextMenu)); + WeakReferenceMessenger.Default.Send(new(command.Command.Model, command.Model)); return ContextKeybindingResult.KeepOpen; } else