mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-08 00:02:05 +03:00
Add full support for (one-click) Iran regional preset by using Chocolate4U's github repos for iran routing rules (#6384)
This commit is contained in:
committed by
GitHub
parent
647f1d9c8b
commit
ff642fd1ac
@@ -50,6 +50,8 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
public ReactiveCommand<Unit, Unit> RegionalPresetRussiaCmd { get; }
|
||||
|
||||
public ReactiveCommand<Unit, Unit> RegionalPresetIranCmd { get; }
|
||||
|
||||
public ReactiveCommand<Unit, Unit> ReloadCmd { get; }
|
||||
|
||||
[Reactive]
|
||||
@@ -197,6 +199,11 @@ namespace ServiceLib.ViewModels
|
||||
await ApplyRegionalPreset(EPresetType.Russia);
|
||||
});
|
||||
|
||||
RegionalPresetIranCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
await ApplyRegionalPreset(EPresetType.Iran);
|
||||
});
|
||||
|
||||
#endregion WhenAnyValue && ReactiveCommand
|
||||
|
||||
Init();
|
||||
|
||||
Reference in New Issue
Block a user