mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-25 22:55:01 +03:00
Generated
+1
-1
@@ -2149,7 +2149,7 @@ namespace ServiceLib.Resx {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 Not Support 的本地化字符串。
|
/// 查找类似 Not Supported 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string MsgNotSupport {
|
public static string MsgNotSupport {
|
||||||
get {
|
get {
|
||||||
|
|||||||
@@ -42,11 +42,21 @@ public partial class CheckUpdateViewModel : MyReactiveObject
|
|||||||
this.WhenAnyValue(x => x.EnableUpdateViaProxy)
|
this.WhenAnyValue(x => x.EnableUpdateViaProxy)
|
||||||
.Subscribe(c => _ = OnUpdateViaProxyChanged());
|
.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()
|
var models = CoreInfoManager.Instance.GetCheckUpdateCoreTypes()
|
||||||
.Select(t => GetCheckUpdateModel(t))
|
.Select(t => GetCheckUpdateModel(t))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user