Browse Source

Add Connections Host Filter

pull/5701/head
2dust 2 months ago
parent
commit
346a9c5fcc
  1. 5
      v2rayN/v2rayN.Desktop/App.axaml
  2. 7
      v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml
  3. 1
      v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml.cs

5
v2rayN/v2rayN.Desktop/App.axaml

@ -13,7 +13,10 @@
<TrayIcon.Icons>
<TrayIcons>
<TrayIcon Clicked="TrayIcon_Clicked" Icon="/Assets/NotifyIcon1.ico">
<TrayIcon
Clicked="TrayIcon_Clicked"
Icon="/Assets/NotifyIcon1.ico"
ToolTipText="v2rayN Desktop">
<TrayIcon.Menu>
<NativeMenu>
<NativeMenuItem Click="MenuAddServerViaClipboardClick" Header="{x:Static resx:ResUI.menuAddServerViaClipboard}" />

7
v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml

@ -18,6 +18,13 @@
DockPanel.Dock="Top"
Orientation="Horizontal">
<TextBox
x:Name="txtHostFilter"
Width="200"
Margin="8,0"
VerticalContentAlignment="Center"
Watermark="{x:Static resx:ResUI.ConnectionsHostFilterTitle}" />
<TextBlock
Margin="8,0"
VerticalAlignment="Center"

1
v2rayN/v2rayN.Desktop/Views/ClashConnectionsView.axaml.cs

@ -21,6 +21,7 @@ namespace v2rayN.Desktop.Views
this.BindCommand(ViewModel, vm => 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);

Loading…
Cancel
Save