fix: copy multiple commits info not working anymore

This commit is contained in:
leo 2024-08-28 10:17:12 +08:00
parent 9f9cea34f8
commit b2bbbb191c
No known key found for this signature in database

View file

@ -680,7 +680,7 @@ namespace SourceGit.Views
private void OnCommitListKeyDown(object sender, KeyEventArgs e) private void OnCommitListKeyDown(object sender, KeyEventArgs e)
{ {
if (sender is ListBox { SelectedItems: { Count : 1 } selected } && if (sender is ListBox { SelectedItems: { Count : > 0 } selected } &&
e.Key == Key.C && e.Key == Key.C &&
e.KeyModifiers.HasFlag(KeyModifiers.Control)) e.KeyModifiers.HasFlag(KeyModifiers.Control))
{ {