Code clean

pull/6626/head
2dust 2025-02-04 14:30:28 +08:00
parent 885587e551
commit 4ffe595db6
4 changed files with 4 additions and 5 deletions

View File

@ -69,7 +69,7 @@ namespace ServiceLib.Handler.SysProxy
} }
return result; return result;
} }
catch (Exception ex) catch
{ {
SetProxyFallback(strProxy, exceptions, type); SetProxyFallback(strProxy, exceptions, type);
return false; return false;

View File

@ -350,7 +350,7 @@ namespace v2rayN.Desktop.Views
//ShowHideWindow(false); //ShowHideWindow(false);
NoticeHandler.Instance.SendMessageAndEnqueue("Not yet implemented.(还未实现)"); NoticeHandler.Instance.SendMessageAndEnqueue("Not yet implemented.(还未实现)");
return; await Task.CompletedTask;
//if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) //if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
//{ //{
// //var bytes = QRCodeHelper.CaptureScreen(desktop); // //var bytes = QRCodeHelper.CaptureScreen(desktop);

View File

@ -219,7 +219,7 @@ namespace v2rayN.Desktop.Views
private void LstProfiles_LoadingRow(object? sender, DataGridRowEventArgs e) 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) //private void LstProfiles_ColumnHeader_Click(object? sender, RoutedEventArgs e)

View File

@ -10,7 +10,6 @@ namespace v2rayN
public partial class App : Application public partial class App : Application
{ {
public static EventWaitHandle ProgramStarted; public static EventWaitHandle ProgramStarted;
private static Config _config;
public App() public App()
{ {
@ -73,4 +72,4 @@ namespace v2rayN
Process.GetCurrentProcess().Kill(); Process.GetCurrentProcess().Kill();
} }
} }
} }