feature<CommitViewer>: using d=map instead of d=identicon

This commit is contained in:
leo 2020-11-18 17:34:38 +08:00
parent dab5302fc8
commit 0e48344401

View file

@ -107,7 +107,7 @@ namespace SourceGit.UI {
if (File.Exists(filePath)) { if (File.Exists(filePath)) {
avatar.Source = new BitmapImage(new Uri(filePath)); avatar.Source = new BitmapImage(new Uri(filePath));
} else { } else {
var bitmap = new BitmapImage(new Uri("https://www.gravatar.com/avatar/" + md5 + "?d=identicon")); var bitmap = new BitmapImage(new Uri("https://www.gravatar.com/avatar/" + md5 + "?d=mp"));
bitmap.DownloadCompleted += (o, e) => { bitmap.DownloadCompleted += (o, e) => {
var owner = o as BitmapImage; var owner = o as BitmapImage;
if (owner != null) { if (owner != null) {