mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
feature: using TextBlock instead of SelectableTextBlock for commit SHA and add a button to copy it
This commit is contained in:
parent
6cf9448313
commit
e0b09d4dd4
7 changed files with 23 additions and 13 deletions
|
@ -49,6 +49,14 @@ namespace SourceGit.Views
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void OnCopyCommitSHA(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is Button { DataContext: Models.Commit commit })
|
||||
App.CopyText(commit.SHA);
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OnOpenWebLink(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.CommitDetail detail)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue