mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: avoid refetch avatar for noreply@github.com
This commit is contained in:
parent
a7ea61f9af
commit
0450931655
2 changed files with 3 additions and 3 deletions
|
@ -122,6 +122,9 @@ namespace SourceGit.Models
|
||||||
{
|
{
|
||||||
if (forceRefetch)
|
if (forceRefetch)
|
||||||
{
|
{
|
||||||
|
if (email.Equals("noreply@github.com", StringComparison.Ordinal))
|
||||||
|
return null;
|
||||||
|
|
||||||
if (_resources.ContainsKey(email))
|
if (_resources.ContainsKey(email))
|
||||||
_resources.Remove(email);
|
_resources.Remove(email);
|
||||||
|
|
||||||
|
|
|
@ -39,10 +39,7 @@ namespace SourceGit.Views
|
||||||
refetch.Click += (_, _) =>
|
refetch.Click += (_, _) =>
|
||||||
{
|
{
|
||||||
if (User != null)
|
if (User != null)
|
||||||
{
|
|
||||||
Models.AvatarManager.Request(User.Email, true);
|
Models.AvatarManager.Request(User.Email, true);
|
||||||
InvalidateVisual();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ContextMenu = new ContextMenu();
|
ContextMenu = new ContextMenu();
|
||||||
|
|
Loading…
Reference in a new issue