diff --git a/v2rayN/v2rayN/Handler/TunHandler.cs b/v2rayN/v2rayN/Handler/TunHandler.cs index af23503b..de73894f 100644 --- a/v2rayN/v2rayN/Handler/TunHandler.cs +++ b/v2rayN/v2rayN/Handler/TunHandler.cs @@ -210,7 +210,7 @@ namespace v2rayN.Base WorkingDirectory = Utils.GetConfigPath(), UseShellExecute = showWindow, CreateNoWindow = !showWindow, - RedirectStandardError = !showWindow, + //RedirectStandardError = !showWindow, Verb = "runas", } }; @@ -219,14 +219,14 @@ namespace v2rayN.Base _isRunning = true; if (p.WaitForExit(1000)) { - if (showWindow) - { - throw new Exception("start tun mode fail"); - } - else - { - throw new Exception(p.StandardError.ReadToEnd()); - } + //if (showWindow) + //{ + throw new Exception("start tun mode fail"); + //} + //else + //{ + // throw new Exception(p.StandardError.ReadToEnd()); + //} } Global.processJob.AddProcess(p.Handle); diff --git a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs index e8579c2c..306dbeda 100644 --- a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs @@ -226,7 +226,7 @@ namespace v2rayN.ViewModels this.WhenAnyValue( x => x.SelectedMoveToGroup, y => y != null && !y.remarks.IsNullOrEmpty()) - .Subscribe(c => MoveToGroup(c)); + .Subscribe(c => MoveToGroup(c)); this.WhenAnyValue( x => x.SelectedRouting, diff --git a/v2rayN/v2rayN/Views/SubSettingWindow.xaml.cs b/v2rayN/v2rayN/Views/SubSettingWindow.xaml.cs index 34579af3..24b91c65 100644 --- a/v2rayN/v2rayN/Views/SubSettingWindow.xaml.cs +++ b/v2rayN/v2rayN/Views/SubSettingWindow.xaml.cs @@ -40,7 +40,7 @@ namespace v2rayN.Views private void LstSubscription_MouseDoubleClick(object sender, MouseButtonEventArgs e) { ViewModel?.EditSub(false); - } + } private void menuClose_Click(object sender, System.Windows.RoutedEventArgs e) {