mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
feature: cherry-pick multiple commits (#418)
This commit is contained in:
parent
b2bbbb191c
commit
ce2340456e
11 changed files with 138 additions and 39 deletions
|
@ -661,7 +661,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnCommitListContextRequested(object sender, ContextRequestedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.Histories histories && sender is ListBox list)
|
||||
if (DataContext is ViewModels.Histories histories && sender is ListBox { SelectedItems: { Count: > 0 } } list)
|
||||
{
|
||||
var menu = histories.MakeContextMenu(list);
|
||||
list.OpenContextMenu(menu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue