From 5f9f677467d011ee431e119a3597b29101a406ce Mon Sep 17 00:00:00 2001 From: DHR60 Date: Fri, 11 Apr 2025 09:27:34 +0800 Subject: [PATCH] Adjust menu items (#7100) * Adjust menu items * fix #7089 --- v2rayN/ServiceLib/Services/SpeedtestService.cs | 4 ++-- v2rayN/v2rayN.Desktop/Views/MainWindow.axaml | 4 ++-- v2rayN/v2rayN/Views/MainWindow.xaml | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/v2rayN/ServiceLib/Services/SpeedtestService.cs b/v2rayN/ServiceLib/Services/SpeedtestService.cs index 2a605d36..f4cd64a2 100644 --- a/v2rayN/ServiceLib/Services/SpeedtestService.cs +++ b/v2rayN/ServiceLib/Services/SpeedtestService.cs @@ -357,8 +357,8 @@ public class SpeedtestService private List> GetTestBatchItem(List lstSelected, int pageSize) { List> lstTest = new(); - var lst1 = lstSelected.Where(t => t.ConfigType is not (EConfigType.Hysteria2 or EConfigType.TUIC or EConfigType.WireGuard)).ToList(); - var lst2 = lstSelected.Where(t => t.ConfigType is EConfigType.Hysteria2 or EConfigType.TUIC or EConfigType.WireGuard).ToList(); + var lst1 = lstSelected.Where(t => t.ConfigType is not (EConfigType.Hysteria2 or EConfigType.TUIC)).ToList(); + var lst2 = lstSelected.Where(t => t.ConfigType is EConfigType.Hysteria2 or EConfigType.TUIC).ToList(); for (var num = 0; num < (int)Math.Ceiling(lst1.Count * 1.0 / pageSize); num++) { diff --git a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml index f5d1b947..bbc78a72 100644 --- a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml @@ -39,13 +39,13 @@ + + - - diff --git a/v2rayN/v2rayN/Views/MainWindow.xaml b/v2rayN/v2rayN/Views/MainWindow.xaml index 5417da0c..9fb2a3ae 100644 --- a/v2rayN/v2rayN/Views/MainWindow.xaml +++ b/v2rayN/v2rayN/Views/MainWindow.xaml @@ -81,6 +81,14 @@ x:Name="menuAddShadowsocksServer" Height="{StaticResource MenuItemHeight}" Header="{x:Static resx:ResUI.menuAddShadowsocksServer}" /> + + - -