mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix: sometimes textblock with issue link will render nothing
This commit is contained in:
parent
ec14d9d533
commit
55da40f8dc
5 changed files with 163 additions and 11 deletions
|
@ -106,7 +106,7 @@ namespace SourceGit.Views
|
|||
return;
|
||||
|
||||
_lastHover = match;
|
||||
_lastHover.Link.Classes.Add("issue_link_hovered");
|
||||
//_lastHover.Link.Classes.Add("issue_link_hovered");
|
||||
|
||||
SetCurrentValue(CursorProperty, Cursor.Parse("Hand"));
|
||||
ToolTip.SetTip(this, match.URL);
|
||||
|
@ -124,7 +124,6 @@ namespace SourceGit.Views
|
|||
{
|
||||
e.Pointer.Capture(null);
|
||||
Native.OS.OpenBrowser(_lastHover.URL);
|
||||
ClearHoveredIssueLink();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
@ -144,7 +143,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
ToolTip.SetTip(this, null);
|
||||
SetCurrentValue(CursorProperty, Cursor.Parse("IBeam"));
|
||||
_lastHover.Link.Classes.Remove("issue_link_hovered");
|
||||
//_lastHover.Link.Classes.Remove("issue_link_hovered");
|
||||
_lastHover = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue