diff --git a/v2rayN/ServiceLib/Handler/SysProxy/ProxySettingWindows.cs b/v2rayN/ServiceLib/Handler/SysProxy/ProxySettingWindows.cs index be11eae0..818ea3f3 100644 --- a/v2rayN/ServiceLib/Handler/SysProxy/ProxySettingWindows.cs +++ b/v2rayN/ServiceLib/Handler/SysProxy/ProxySettingWindows.cs @@ -69,7 +69,7 @@ namespace ServiceLib.Handler.SysProxy } return result; } - catch (Exception ex) + catch { SetProxyFallback(strProxy, exceptions, type); return false; diff --git a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs index 43ff5cb8..e70a68ac 100644 --- a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs @@ -350,7 +350,7 @@ namespace v2rayN.Desktop.Views //ShowHideWindow(false); NoticeHandler.Instance.SendMessageAndEnqueue("Not yet implemented.(还未实现)"); - return; + await Task.CompletedTask; //if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) //{ // //var bytes = QRCodeHelper.CaptureScreen(desktop); diff --git a/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs b/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs index bc043e5e..be0072a8 100644 --- a/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs @@ -219,7 +219,7 @@ namespace v2rayN.Desktop.Views private void LstProfiles_LoadingRow(object? sender, DataGridRowEventArgs e) { - e.Row.Header = $" {e.Row.GetIndex() + 1}"; + e.Row.Header = $" {e.Row.Index + 1}"; } //private void LstProfiles_ColumnHeader_Click(object? sender, RoutedEventArgs e) diff --git a/v2rayN/v2rayN/App.xaml.cs b/v2rayN/v2rayN/App.xaml.cs index 42c086fc..09988753 100644 --- a/v2rayN/v2rayN/App.xaml.cs +++ b/v2rayN/v2rayN/App.xaml.cs @@ -10,7 +10,6 @@ namespace v2rayN public partial class App : Application { public static EventWaitHandle ProgramStarted; - private static Config _config; public App() { @@ -73,4 +72,4 @@ namespace v2rayN Process.GetCurrentProcess().Kill(); } } -} \ No newline at end of file +}