Skip to content

Commit 5ba5a80

Browse files
committed
Make MTU combobox editable
2dust#9370
1 parent 807f0ab commit 5ba5a80

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@
876876
Grid.Column="1"
877877
Width="200"
878878
Margin="{StaticResource Margin4}"
879-
HorizontalAlignment="Left" />
879+
HorizontalAlignment="Left"
880+
IsEditable="True" />
880881

881882
<TextBlock
882883
Grid.Row="6"

v2rayN/v2rayN.Desktop/Views/OptionSettingWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public OptionSettingWindow()
118118
this.Bind(ViewModel, vm => vm.TunAutoRoute, v => v.togAutoRoute.IsChecked).DisposeWith(disposables);
119119
this.Bind(ViewModel, vm => vm.TunStrictRoute, v => v.togStrictRoute.IsChecked).DisposeWith(disposables);
120120
this.Bind(ViewModel, vm => vm.TunStack, v => v.cmbStack.SelectedValue).DisposeWith(disposables);
121-
this.Bind(ViewModel, vm => vm.TunMtu, v => v.cmbMtu.SelectedValue).DisposeWith(disposables);
121+
this.Bind(ViewModel, vm => vm.TunMtu, v => v.cmbMtu.Text).DisposeWith(disposables);
122122
this.Bind(ViewModel, vm => vm.TunEnableIPv6Address, v => v.togEnableIPv6Address.IsChecked).DisposeWith(disposables);
123123
this.Bind(ViewModel, vm => vm.TunIcmpRouting, v => v.cmbIcmpRoutingPolicy.SelectedValue).DisposeWith(disposables);
124124
this.Bind(ViewModel, vm => vm.TunEnableLegacyProtect, v => v.togEnableLegacyProtect.IsChecked).DisposeWith(disposables);

v2rayN/v2rayN/Views/OptionSettingWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,7 @@
11411141
Width="200"
11421142
Margin="{StaticResource Margin8}"
11431143
HorizontalAlignment="Left"
1144+
IsEditable="True"
11441145
Style="{StaticResource DefComboBox}" />
11451146

11461147
<TextBlock

0 commit comments

Comments
 (0)