mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-22 05:40:43 +08:00
enhance: avoid refetch avatar for noreply@github.com
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -39,10 +39,7 @@ namespace SourceGit.Views
|
||||
refetch.Click += (_, _) =>
|
||||
{
|
||||
if (User != null)
|
||||
{
|
||||
Models.AvatarManager.Request(User.Email, true);
|
||||
InvalidateVisual();
|
||||
}
|
||||
};
|
||||
|
||||
ContextMenu = new ContextMenu();
|
||||
|
||||
Reference in New Issue
Block a user