mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-08 05:25:01 +03:00
Bug fix
This commit is contained in:
@@ -72,11 +72,11 @@ public partial class ProfilesSelectViewModel : MyReactiveObject, ICloseable
|
|||||||
// React to ConfigType filter changes
|
// React to ConfigType filter changes
|
||||||
this.WhenAnyValue(x => x.FilterExclude)
|
this.WhenAnyValue(x => x.FilterExclude)
|
||||||
.Skip(1)
|
.Skip(1)
|
||||||
.SubscribeAsync(async _ => await RefreshServersBiz());
|
.SubscribeAsync(async _ => await RefreshServers());
|
||||||
|
|
||||||
this.WhenAnyValue(x => x.FilterConfigTypes)
|
this.WhenAnyValue(x => x.FilterConfigTypes)
|
||||||
.Skip(1)
|
.Skip(1)
|
||||||
.SubscribeAsync(async _ => await RefreshServersBiz());
|
.SubscribeAsync(async _ => await RefreshServers());
|
||||||
|
|
||||||
#endregion WhenAnyValue && ReactiveCommand
|
#endregion WhenAnyValue && ReactiveCommand
|
||||||
|
|
||||||
@@ -146,7 +146,13 @@ public partial class ProfilesSelectViewModel : MyReactiveObject, ICloseable
|
|||||||
|
|
||||||
public async Task RefreshServers()
|
public async Task RefreshServers()
|
||||||
{
|
{
|
||||||
await RefreshServersBiz();
|
await Signal.FromAsync(async () =>
|
||||||
|
{
|
||||||
|
await RefreshServersBiz();
|
||||||
|
return RxVoid.Default;
|
||||||
|
})
|
||||||
|
.SubscribeOn(RxSchedulers.MainThreadScheduler)
|
||||||
|
.ToTask();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task RefreshServersBiz()
|
private async Task RefreshServersBiz()
|
||||||
|
|||||||
Reference in New Issue
Block a user