From fb649c04cfc2cbffad16aaf32afd42309f3f8370 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:17:05 +0800 Subject: [PATCH] Code clean --- v2rayN/ServiceLib/Handler/Fmt/BaseFmt.cs | 1 + v2rayN/ServiceLib/Handler/Fmt/VmessFmt.cs | 1 - v2rayN/v2rayN.Desktop/Views/RoutingSettingWindow.axaml.cs | 2 +- v2rayN/v2rayN/App.xaml | 2 +- v2rayN/v2rayN/Views/ClashConnectionsView.xaml | 6 +++--- v2rayN/v2rayN/Views/ClashProxiesView.xaml | 8 ++++---- v2rayN/v2rayN/Views/RoutingRuleDetailsWindow.xaml | 8 ++++---- v2rayN/v2rayN/Views/RoutingRuleSettingWindow.xaml | 8 ++++---- v2rayN/v2rayN/Views/StatusBarView.xaml.cs | 4 ---- v2rayN/v2rayN/Views/SubEditWindow.xaml | 8 ++++---- v2rayN/v2rayN/Views/ThemeSettingView.xaml | 6 +++--- 11 files changed, 25 insertions(+), 29 deletions(-) diff --git a/v2rayN/ServiceLib/Handler/Fmt/BaseFmt.cs b/v2rayN/ServiceLib/Handler/Fmt/BaseFmt.cs index 8f7c319f..96b5245b 100644 --- a/v2rayN/ServiceLib/Handler/Fmt/BaseFmt.cs +++ b/v2rayN/ServiceLib/Handler/Fmt/BaseFmt.cs @@ -201,6 +201,7 @@ namespace ServiceLib.Handler.Fmt File.WriteAllText(fileName, strData); return fileName; } + protected static string ToUri(EConfigType eConfigType, string address, object port, string userInfo, Dictionary? dicQuery, string? remark) { var query = dicQuery != null diff --git a/v2rayN/ServiceLib/Handler/Fmt/VmessFmt.cs b/v2rayN/ServiceLib/Handler/Fmt/VmessFmt.cs index 311462fa..4d81b650 100644 --- a/v2rayN/ServiceLib/Handler/Fmt/VmessFmt.cs +++ b/v2rayN/ServiceLib/Handler/Fmt/VmessFmt.cs @@ -59,7 +59,6 @@ result = result[Global.ProtocolShares[EConfigType.VMess].Length..]; result = Utils.Base64Decode(result); - VmessQRCode? vmessQRCode = JsonUtils.Deserialize(result); if (vmessQRCode == null) { diff --git a/v2rayN/v2rayN.Desktop/Views/RoutingSettingWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/RoutingSettingWindow.axaml.cs index 159eb4e2..ed54a823 100644 --- a/v2rayN/v2rayN.Desktop/Views/RoutingSettingWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/RoutingSettingWindow.axaml.cs @@ -82,7 +82,7 @@ namespace v2rayN.Desktop.Views } private void RoutingSettingWindow_KeyDown(object? sender, KeyEventArgs e) - { + { if (e.KeyModifiers == KeyModifiers.Control) { if (e.Key == Key.A) diff --git a/v2rayN/v2rayN/App.xaml b/v2rayN/v2rayN/App.xaml index b5d2997d..547fae73 100644 --- a/v2rayN/v2rayN/App.xaml +++ b/v2rayN/v2rayN/App.xaml @@ -1,9 +1,9 @@  diff --git a/v2rayN/v2rayN/Views/ClashConnectionsView.xaml b/v2rayN/v2rayN/Views/ClashConnectionsView.xaml index f83226c0..8143a537 100644 --- a/v2rayN/v2rayN/Views/ClashConnectionsView.xaml +++ b/v2rayN/v2rayN/Views/ClashConnectionsView.xaml @@ -1,11 +1,11 @@