diff --git a/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml b/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml index 71edc63a2f5..01b20b4b354 100644 --- a/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml +++ b/v2rayN/v2rayN.Desktop/Views/RoutingRuleSettingWindow.axaml @@ -123,6 +123,7 @@ Classes="Margin8" TextWrapping="Wrap" /> + vm.SelectedRouting.DomainStrategy4Singbox, v => v.cmbdomainStrategy4Singbox.SelectedValue).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedRouting.Url, v => v.txtUrl.Text).DisposeWith(disposables); - this.Bind(ViewModel, vm => vm.SelectedRouting.CustomIcon, v => v.txtCustomIcon.Text).DisposeWith(disposables); + //this.Bind(ViewModel, vm => vm.SelectedRouting.CustomIcon, v => v.txtCustomIcon.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedRouting.CustomRulesetPath4Singbox, v => v.txtCustomRulesetPath4Singbox.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedRouting.Sort, v => v.txtSort.Text).DisposeWith(disposables); @@ -179,16 +179,16 @@ private void menuRuleSelectAll_Click(object? sender, RoutedEventArgs e) lstRules.SelectAll(); } - private async void btnBrowseCustomIcon_Click(object? sender, RoutedEventArgs e) - { - var fileName = await UI.OpenFileDialog(this, FilePickerFileTypes.ImagePng); - if (fileName.IsNullOrEmpty()) - { - return; - } + //private async void btnBrowseCustomIcon_Click(object? sender, RoutedEventArgs e) + //{ + // var fileName = await UI.OpenFileDialog(this, FilePickerFileTypes.ImagePng); + // if (fileName.IsNullOrEmpty()) + // { + // return; + // } - txtCustomIcon.Text = fileName; - } + // txtCustomIcon.Text = fileName; + //} private async void btnBrowseCustomRulesetPath4Singbox_ClickAsync(object? sender, RoutedEventArgs e) { diff --git a/v2rayN/v2rayN/Views/RoutingRuleSettingWindow.xaml b/v2rayN/v2rayN/Views/RoutingRuleSettingWindow.xaml index 772a422dff6..02021c5cf80 100644 --- a/v2rayN/v2rayN/Views/RoutingRuleSettingWindow.xaml +++ b/v2rayN/v2rayN/Views/RoutingRuleSettingWindow.xaml @@ -186,6 +186,7 @@ Style="{StaticResource DefTextBox}" TextWrapping="Wrap" /> + vm.SelectedRouting.DomainStrategy4Singbox, v => v.cmbdomainStrategy4Singbox.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedRouting.Url, v => v.txtUrl.Text).DisposeWith(disposables); - this.Bind(ViewModel, vm => vm.SelectedRouting.CustomIcon, v => v.txtCustomIcon.Text).DisposeWith(disposables); + //this.Bind(ViewModel, vm => vm.SelectedRouting.CustomIcon, v => v.txtCustomIcon.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedRouting.CustomRulesetPath4Singbox, v => v.txtCustomRulesetPath4Singbox.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SelectedRouting.Sort, v => v.txtSort.Text).DisposeWith(disposables); @@ -173,16 +173,16 @@ private void menuRuleSelectAll_Click(object sender, System.Windows.RoutedEventAr lstRules.SelectAll(); } - private void btnBrowseCustomIcon_Click(object sender, System.Windows.RoutedEventArgs e) - { - if (UI.OpenFileDialog(out string fileName, - "PNG,ICO|*.png;*.ico") != true) - { - return; - } + //private void btnBrowseCustomIcon_Click(object sender, System.Windows.RoutedEventArgs e) + //{ + // if (UI.OpenFileDialog(out string fileName, + // "PNG,ICO|*.png;*.ico") != true) + // { + // return; + // } - txtCustomIcon.Text = fileName; - } + // txtCustomIcon.Text = fileName; + //} private void btnBrowseCustomRulesetPath4Singbox_Click(object sender, RoutedEventArgs e) {