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:
OnceUponATimeInAmerica
2024-12-31 09:21:06 +03:30
committed by GitHub
parent 647f1d9c8b
commit ff642fd1ac
15 changed files with 56 additions and 0 deletions

View File

@@ -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();