diff --git a/src/Views/CommitBaseInfo.axaml b/src/Views/CommitBaseInfo.axaml index 2ab64525..7b498b10 100644 --- a/src/Views/CommitBaseInfo.axaml +++ b/src/Views/CommitBaseInfo.axaml @@ -112,7 +112,8 @@ Cursor="Hand" Margin="0,0,16,0" PointerEntered="OnSHAPointerEntered" - PointerPressed="OnSHAPressed"> + PointerPressed="OnSHAPressed" + ToolTip.ShowDelay="0"> @@ -149,7 +150,8 @@ Cursor="Hand" Margin="0,0,16,0" PointerEntered="OnSHAPointerEntered" - PointerPressed="OnSHAPressed"> + PointerPressed="OnSHAPressed" + ToolTip.ShowDelay="0"> diff --git a/src/Views/CommitBaseInfo.axaml.cs b/src/Views/CommitBaseInfo.axaml.cs index 57592647..0b4c1f2d 100644 --- a/src/Views/CommitBaseInfo.axaml.cs +++ b/src/Views/CommitBaseInfo.axaml.cs @@ -130,19 +130,15 @@ namespace SourceGit.Views { var tooltip = ToolTip.GetTip(ctl); if (tooltip is Models.Commit commit && commit.SHA == sha) - { - ToolTip.SetIsOpen(ctl, true); - } - else - { - var c = await Task.Run(() => detail.GetParent(sha)); - if (c != null && ctl.IsVisible && ctl.DataContext is string newSHA && newSHA == sha) - { - ToolTip.SetTip(ctl, c); + return; - if (ctl.IsPointerOver) - ToolTip.SetIsOpen(ctl, true); - } + var c = await Task.Run(() => detail.GetParent(sha)); + if (c != null && ctl.IsVisible && ctl.DataContext is string newSHA && newSHA == sha) + { + ToolTip.SetTip(ctl, c); + + if (ctl.IsPointerOver) + ToolTip.SetIsOpen(ctl, true); } }