code_style: run dotnet format

This commit is contained in:
leo 2024-09-25 16:24:04 +08:00
parent acf71a30b8
commit 85b83990a8
No known key found for this signature in database
7 changed files with 18 additions and 17 deletions

View file

@ -41,7 +41,7 @@ namespace SourceGit.Views
e.Handled = true;
}
}
if (!e.Handled && e.Key != Key.Space)
base.OnKeyDown(e);
}
@ -166,10 +166,10 @@ namespace SourceGit.Views
{
if (lastUnselected == -1)
continue;
break;
}
lastUnselected = i;
}
}
@ -186,10 +186,10 @@ namespace SourceGit.Views
{
if (lastUnselected == -1)
continue;
break;
}
lastUnselected = i;
}
@ -244,7 +244,7 @@ namespace SourceGit.Views
_disableSelectionChangingEvent = true;
var selected = new List<Models.Change>();
if (sender is ListBox { SelectedItems: {} selectedItems })
if (sender is ListBox { SelectedItems: { } selectedItems })
{
foreach (var item in selectedItems)
{

View file

@ -117,7 +117,7 @@ namespace SourceGit.Views
e.Handled = true;
}
}
if (!e.Handled)
base.OnKeyDown(e);
}

View file

@ -25,7 +25,7 @@ namespace SourceGit.Views
e.Handled = true;
}
}
public class RepositoryListBox : ListBox
{
protected override Type StyleKeyOverride => typeof(ListBox);
@ -40,7 +40,7 @@ namespace SourceGit.Views
e.Handled = true;
}
}
if (!e.Handled)
base.OnKeyDown(e);
}