mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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