From 5ba5a805ce0425cf2204e41d4f5b1117b130472a Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sun, 24 May 2026 14:54:06 +0800 Subject: [PATCH] Make MTU combobox editable https://github.com/2dust/v2rayN/issues/9370 --- v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml | 3 ++- v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs | 2 +- v2rayN/v2rayN/Views/OptionSettingWindow.xaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml index d47deb2e..2baea96c 100644 --- a/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml @@ -876,7 +876,8 @@ Grid.Column="1" Width="200" Margin="{StaticResource Margin4}" - HorizontalAlignment="Left" /> + HorizontalAlignment="Left" + IsEditable="True" /> this.Bind(ViewModel, vm => vm.TunAutoRoute, v => v.togAutoRoute.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.TunStrictRoute, v => v.togStrictRoute.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.TunStack, v => v.cmbStack.SelectedValue).DisposeWith(disposables); - this.Bind(ViewModel, vm => vm.TunMtu, v => v.cmbMtu.SelectedValue).DisposeWith(disposables); + this.Bind(ViewModel, vm => vm.TunMtu, v => v.cmbMtu.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.TunEnableIPv6Address, v => v.togEnableIPv6Address.IsChecked).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.TunIcmpRouting, v => v.cmbIcmpRoutingPolicy.SelectedValue).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.TunEnableLegacyProtect, v => v.togEnableLegacyProtect.IsChecked).DisposeWith(disposables); diff --git a/v2rayN/v2rayN/Views/OptionSettingWindow.xaml b/v2rayN/v2rayN/Views/OptionSettingWindow.xaml index 0a5208e3..df46d963 100644 --- a/v2rayN/v2rayN/Views/OptionSettingWindow.xaml +++ b/v2rayN/v2rayN/Views/OptionSettingWindow.xaml @@ -1141,6 +1141,7 @@ Width="200" Margin="{StaticResource Margin8}" HorizontalAlignment="Left" + IsEditable="True" Style="{StaticResource DefComboBox}" />