diff --git a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs index 92a53ab8..f243da9c 100644 --- a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs @@ -112,8 +112,8 @@ namespace v2rayN.ViewModels public ReactiveCommand SubSettingCmd { get; } public ReactiveCommand AddSubCmd { get; } public ReactiveCommand SubUpdateCmd { get; } - public ReactiveCommand SubGroupUpdateCmd { get; } public ReactiveCommand SubUpdateViaProxyCmd { get; } + public ReactiveCommand SubGroupUpdateCmd { get; } public ReactiveCommand SubGroupUpdateViaProxyCmd { get; } //Setting @@ -388,13 +388,13 @@ namespace v2rayN.ViewModels { UpdateSubscriptionProcess("", false); }); - SubGroupUpdateCmd = ReactiveCommand.Create(() => - { - UpdateSubscriptionProcess(_subId, true); - }); SubUpdateViaProxyCmd = ReactiveCommand.Create(() => { - UpdateSubscriptionProcess("", false); + UpdateSubscriptionProcess("", true); + }); + SubGroupUpdateCmd = ReactiveCommand.Create(() => + { + UpdateSubscriptionProcess(_subId, false); }); SubGroupUpdateViaProxyCmd = ReactiveCommand.Create(() => { diff --git a/v2rayN/v2rayN/Views/MainWindow.xaml.cs b/v2rayN/v2rayN/Views/MainWindow.xaml.cs index 9c171f90..75585148 100644 --- a/v2rayN/v2rayN/Views/MainWindow.xaml.cs +++ b/v2rayN/v2rayN/Views/MainWindow.xaml.cs @@ -103,8 +103,8 @@ namespace v2rayN.Views //sub this.BindCommand(ViewModel, vm => vm.SubSettingCmd, v => v.menuSubSetting).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.SubUpdateCmd, v => v.menuSubUpdate).DisposeWith(disposables); - this.BindCommand(ViewModel, vm => vm.SubGroupUpdateCmd, v => v.menuSubGroupUpdate).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.SubUpdateViaProxyCmd, v => v.menuSubUpdateViaProxy).DisposeWith(disposables); + this.BindCommand(ViewModel, vm => vm.SubGroupUpdateCmd, v => v.menuSubGroupUpdate).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.SubGroupUpdateViaProxyCmd, v => v.menuSubGroupUpdateViaProxy).DisposeWith(disposables); //setting