From 346a9c5fcc32166dc925e0888724f886ad53d623 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:59:35 +0800 Subject: [PATCH] Add Connections Host Filter --- v2rayN/v2rayN.Desktop/App.axaml | 5 ++++- v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml | 7 +++++++ v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml.cs | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN.Desktop/App.axaml b/v2rayN/v2rayN.Desktop/App.axaml index d326e4c0..12b0fc39 100644 --- a/v2rayN/v2rayN.Desktop/App.axaml +++ b/v2rayN/v2rayN.Desktop/App.axaml @@ -13,7 +13,10 @@ - + diff --git a/v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml b/v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml index 196980fc..07adf5e2 100644 --- a/v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml @@ -18,6 +18,13 @@ DockPanel.Dock="Top" Orientation="Horizontal"> + + vm.ConnectionCloseCmd, v => v.menuConnectionClose).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.ConnectionCloseAllCmd, v => v.menuConnectionCloseAll).DisposeWith(disposables); + this.Bind(ViewModel, vm => vm.HostFilter, v => v.txtHostFilter.Text).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.SortingSelected, v => v.cmbSorting.SelectedIndex).DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.ConnectionCloseAllCmd, v => v.btnConnectionCloseAll).DisposeWith(disposables); this.Bind(ViewModel, vm => vm.AutoRefresh, v => v.togAutoRefresh.IsChecked).DisposeWith(disposables);