mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-26 08:32:08 +03:00
Generated
+1
-1
@@ -2149,7 +2149,7 @@ namespace ServiceLib.Resx {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Not Support 的本地化字符串。
|
||||
/// 查找类似 Not Supported 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string MsgNotSupport {
|
||||
get {
|
||||
|
||||
@@ -42,11 +42,21 @@ public partial class CheckUpdateViewModel : MyReactiveObject
|
||||
this.WhenAnyValue(x => x.EnableUpdateViaProxy)
|
||||
.Subscribe(c => _ = OnUpdateViaProxyChanged());
|
||||
|
||||
RefreshCheckUpdateItems();
|
||||
AppEvents.HasUpdateNotified
|
||||
.AsObservable()
|
||||
.ObserveOn(RxSchedulers.MainThreadScheduler)
|
||||
.Subscribe(bl => RefreshCheckUpdateItems(bl));
|
||||
|
||||
RefreshCheckUpdateItems(true);
|
||||
}
|
||||
|
||||
private void RefreshCheckUpdateItems()
|
||||
private void RefreshCheckUpdateItems(bool hasUpdate)
|
||||
{
|
||||
if (!hasUpdate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var models = CoreInfoManager.Instance.GetCheckUpdateCoreTypes()
|
||||
.Select(t => GetCheckUpdateModel(t))
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user