diff --git a/clashN/clashN/Forms/MainForm.cs b/clashN/clashN/Forms/MainForm.cs index bc42562..66df838 100644 --- a/clashN/clashN/Forms/MainForm.cs +++ b/clashN/clashN/Forms/MainForm.cs @@ -240,6 +240,7 @@ private void InitProfilesView() lvProfiles.Columns.Add(ResUI.LvAddress, 60, HorizontalAlignment.Center); lvProfiles.Columns.Add(ResUI.LvEnableTun, 60, HorizontalAlignment.Center); lvProfiles.Columns.Add(ResUI.LvEnableUpdateSub, 100, HorizontalAlignment.Center); + lvProfiles.Columns.Add(ResUI.LvUpdateTime, 80, HorizontalAlignment.Center); if (statistics != null && statistics.Enable) { @@ -289,7 +290,8 @@ private void RefreshProfilesView() Utils.AddSubItem(lvItem, EProfileColName.address.ToString(), item.address.IsNullOrWhiteSpace() ? "" : Global.CheckMark); Utils.AddSubItem(lvItem, EProfileColName.enableTun.ToString(), item.enableTun ? Global.CheckMark : ""); Utils.AddSubItem(lvItem, EProfileColName.enableUpdateSub.ToString(), (item.enabled ? Global.CheckMark : "") + (item.enableConvert ? $"({Global.CheckMark})" : "")); - + Utils.AddSubItem(lvItem, EProfileColName.updateTime.ToString(), item.GetUpdateTime()); + if (statistics != null && statistics.Enable) { string totalUp = string.Empty, diff --git a/clashN/clashN/Handler/ConfigHandler.cs b/clashN/clashN/Handler/ConfigHandler.cs index 78c5bb9..a57db8d 100644 --- a/clashN/clashN/Handler/ConfigHandler.cs +++ b/clashN/clashN/Handler/ConfigHandler.cs @@ -481,6 +481,7 @@ public static int SortProfiles(ref Config config, ref List lstProfi case EProfileColName.remarks: case EProfileColName.url: case EProfileColName.testResult: + case EProfileColName.updateTime: propertyName = name.ToString(); break; default: diff --git a/clashN/clashN/Handler/UpdateHandle.cs b/clashN/clashN/Handler/UpdateHandle.cs index 679dfe9..2b05ce4 100644 --- a/clashN/clashN/Handler/UpdateHandle.cs +++ b/clashN/clashN/Handler/UpdateHandle.cs @@ -228,6 +228,7 @@ public void UpdateSubscriptionProcess(Config config, bool blProxy, List + /// 查找类似 UpdateTime 的本地化字符串。 + /// + internal static string LvUpdateTime { + get { + return ResourceManager.GetString("LvUpdateTime", resourceCulture); + } + } + /// /// 查找类似 Url 的本地化字符串。 /// diff --git a/clashN/clashN/Resx/ResUI.resx b/clashN/clashN/Resx/ResUI.resx index 4bc5088..26be847 100644 --- a/clashN/clashN/Resx/ResUI.resx +++ b/clashN/clashN/Resx/ResUI.resx @@ -379,4 +379,7 @@ Update Core failed, see the log for details + + UpdateTime + \ No newline at end of file diff --git a/clashN/clashN/Resx/ResUI.zh-Hans.resx b/clashN/clashN/Resx/ResUI.zh-Hans.resx index 300c057..b4b019d 100644 --- a/clashN/clashN/Resx/ResUI.zh-Hans.resx +++ b/clashN/clashN/Resx/ResUI.zh-Hans.resx @@ -379,4 +379,7 @@ 更新Core失败,详情见日志 + + 更新时间 + \ No newline at end of file