diff --git a/src/Models/AvatarServer.cs b/src/Models/AvatarServer.cs
deleted file mode 100644
index a96344ec..00000000
--- a/src/Models/AvatarServer.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System.Collections.Generic;
-
-namespace SourceGit.Models {
-
- ///
- /// 支持的头像服务器
- ///
- public class AvatarServer {
- public string Name { get; set; }
- public string Url { get; set; }
-
- public static List Supported = new List() {
- new AvatarServer("Gravatar", "https://www.gravatar.com/avatar/"),
- new AvatarServer("Gravatar - 极客族", "https://sdn.geekzu.org/avatar/"),
- };
-
- public AvatarServer(string name, string url) {
- Name = name;
- Url = url;
- }
- }
-}
diff --git a/src/Models/Preference.cs b/src/Models/Preference.cs
index 04b7d70d..7e4141b6 100644
--- a/src/Models/Preference.cs
+++ b/src/Models/Preference.cs
@@ -58,11 +58,6 @@ namespace SourceGit.Models {
set => FontFamilyContentSetting = value;
}
- ///
- /// 头像服务器
- ///
- public string AvatarServer { get; set; } = "https://www.gravatar.com/avatar/";
-
///
/// 是否启用深色主题
///
diff --git a/src/Views/Controls/Avatar.cs b/src/Views/Controls/Avatar.cs
index 128033fe..219f2ee7 100644
--- a/src/Views/Controls/Avatar.cs
+++ b/src/Views/Controls/Avatar.cs
@@ -193,7 +193,7 @@ namespace SourceGit.Views.Controls {
if (!requesting.ContainsKey(email)) return;
try {
- var req = new HttpClient().GetAsync(Models.Preference.Instance.General.AvatarServer + md5 + "?d=404");
+ var req = new HttpClient().GetAsync($"https://www.gravatar.com/avatar/{md5}?d=404");
req.Wait();
var rsp = req.Result;
diff --git a/src/Views/Preference.xaml b/src/Views/Preference.xaml
index e61f1e68..6f905dda 100644
--- a/src/Views/Preference.xaml
+++ b/src/Views/Preference.xaml
@@ -57,7 +57,7 @@
-
+
@@ -66,7 +66,6 @@
-
@@ -133,36 +132,22 @@
-
-
-
-
@@ -170,7 +155,7 @@
-
+
@@ -310,7 +295,7 @@
-
+