mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
code_style: remove all IDE warnings
This commit is contained in:
parent
9ac550242e
commit
a807aa9e12
94 changed files with 785 additions and 807 deletions
|
@ -31,8 +31,12 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnParentSHAPressed(object sender, PointerPressedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.CommitDetail detail && CanNavigate)
|
||||
detail.NavigateTo((sender as Control).DataContext as string);
|
||||
if (sender is Control { DataContext: string sha } &&
|
||||
DataContext is ViewModels.CommitDetail detail &&
|
||||
CanNavigate)
|
||||
{
|
||||
detail.NavigateTo(sha);
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue