fix: tooltip did not hide after pointer move out (#1178)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-14 10:40:24 +08:00
parent e76328ff38
commit 245de9b458
No known key found for this signature in database
6 changed files with 41 additions and 23 deletions

View file

@ -133,12 +133,7 @@ namespace SourceGit.Views
Dispatcher.UIThread.Invoke(() =>
{
if (ctl.IsEffectivelyVisible && ctl.DataContext is string newSHA && newSHA == sha)
{
ToolTip.SetTip(ctl, c);
if (ctl.IsPointerOver)
ToolTip.SetIsOpen(ctl, true);
}
});
});
}