mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +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
|
@ -83,14 +83,13 @@ namespace SourceGit.Views
|
|||
if (matches.Count == 0)
|
||||
{
|
||||
Inlines.Add(new Run(message));
|
||||
InvalidateTextLayout();
|
||||
return;
|
||||
}
|
||||
|
||||
matches.Sort((l, r) => l.Start - r.Start);
|
||||
_matches = matches;
|
||||
|
||||
var inlines = new List<Run>();
|
||||
var inlines = new List<Inline>();
|
||||
var pos = 0;
|
||||
foreach (var match in matches)
|
||||
{
|
||||
|
@ -108,7 +107,6 @@ namespace SourceGit.Views
|
|||
inlines.Add(new Run(message.Substring(pos)));
|
||||
|
||||
Inlines.AddRange(inlines);
|
||||
InvalidateTextLayout();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue