enhance: avoid refetch avatar for noreply@github.com

This commit is contained in:
leo 2024-08-06 15:40:07 +08:00
parent a7ea61f9af
commit 0450931655
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -122,6 +122,9 @@ namespace SourceGit.Models
{
if (forceRefetch)
{
if (email.Equals("noreply@github.com", StringComparison.Ordinal))
return null;
if (_resources.ContainsKey(email))
_resources.Remove(email);

View file

@ -39,10 +39,7 @@ namespace SourceGit.Views
refetch.Click += (_, _) =>
{
if (User != null)
{
Models.AvatarManager.Request(User.Email, true);
InvalidateVisual();
}
};
ContextMenu = new ContextMenu();