mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
refactor: rewrite file histories page to only focus on selected file (#403)
This commit is contained in:
parent
1caf02ff06
commit
db8de81120
9 changed files with 327 additions and 103 deletions
|
@ -27,5 +27,16 @@ namespace SourceGit.Views
|
|||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OnPressCommitSHA(object sender, PointerPressedEventArgs e)
|
||||
{
|
||||
if (sender is TextBlock { DataContext: Models.Commit commit } &&
|
||||
DataContext is ViewModels.FileHistories vm)
|
||||
{
|
||||
vm.NavigateToCommit(commit);
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue