Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix #954

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions OpenBullet2.Native/Views/Pages/Wordlists.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,7 @@
<TextBlock VerticalAlignment="Center" Margin="5 0">Delete Not Found</TextBlock>
</StackPanel>
</Button>
<TextBox x:Name="filterTextbox" Text="{Binding SearchString}" Margin="10 5 5 5" Width="150" KeyDown="UpdateSearch"/>
<Button Style="{StaticResource StyledButton}" x:Name="searchButton" Click="Search" Margin="0 5 5 5" >
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterialDesign Kind="Search" />
<TextBlock VerticalAlignment="Center" Margin="5 0">Search</TextBlock>
</StackPanel>
</Button>
<TextBox x:Name="filterTextbox" Text="{Binding SearchString, UpdateSourceTrigger=PropertyChanged}" Margin="10 5 5 5" Width="150" KeyDown="UpdateSearch"/>
</StackPanel>

<ListView x:Name="wordlistListView" Grid.Row="1" Foreground="{DynamicResource ForegroundMain}" Background="Transparent" ItemsSource="{Binding Path=WordlistsCollection}" SelectionMode="Extended" BorderThickness="1" AllowDrop="True" Drop="HandleDrop">
Expand Down
3 changes: 1 addition & 2 deletions OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ private void UpdateSearch(object sender, System.Windows.Input.KeyEventArgs e)
}
}

private void Search(object sender, RoutedEventArgs e) => vm.SearchString = filterTextbox.Text;

public async void AddWordlist(WordlistEntity wordlist)
{
Expand Down Expand Up @@ -135,7 +134,7 @@ private async void HandleDrop(object sender, DragEventArgs e)
var entity = new WordlistEntity
{
Name = Path.GetFileNameWithoutExtension(file),
FileName = path,
FileName = path.Replace("\\", "/"),
Type = env.RecognizeWordlistType(firstLine),
Purpose = string.Empty,
Total = File.ReadLines(path).Count()
Expand Down