fix: System.ArgumentException when hover the commit link multiple times before the first time tooltip shows (#765)

This commit is contained in:
leo 2024-11-29 10:26:36 +08:00
parent db8ee3410b
commit 4aad6a7f86
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace SourceGit.ViewModels

View file

@ -296,6 +296,7 @@ namespace SourceGit.Views
if (currentParent is { DataContext: ViewModels.CommitDetail currentDetail } &&
currentDetail.Commit.SHA == lastDetailCommit)
{
if (!_inlineCommits.ContainsKey(sha))
_inlineCommits.Add(sha, c);
// Make sure user still hovers the target SHA.