From 82fb0ad3d0fa1701dde19e100a03ec6ea3b56f97 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Dec 2023 00:33:47 -0800 Subject: [PATCH 1/2] bug fix 1. OpenBullet2.Native Worldlists.xaml Text="{Binding SearchString}" Need Text="{Binding SearchString, UpdateSourceTrigger=PropertyChanged}" and delete Click="Search"(Delete method Search) 2. OpenBullet2.Native Worldlists.xaml.cs position 137 FileName = path, Need FileName = path.Replace("\\", "/"), --- OpenBullet2.Native/Views/Pages/Wordlists.xaml | 8 +------- OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/OpenBullet2.Native/Views/Pages/Wordlists.xaml b/OpenBullet2.Native/Views/Pages/Wordlists.xaml index 322205b5b..b0e322917 100644 --- a/OpenBullet2.Native/Views/Pages/Wordlists.xaml +++ b/OpenBullet2.Native/Views/Pages/Wordlists.xaml @@ -40,13 +40,7 @@ Delete Not Found - - + diff --git a/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs b/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs index 552992dae..a6670d866 100644 --- a/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs +++ b/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs @@ -135,7 +135,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() From c180299288c3ccec7ad76f7f10730b2a2e11802b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Dec 2023 00:33:47 -0800 Subject: [PATCH 2/2] bug fix 1. OpenBullet2.Native Worldlists.xaml Text="{Binding SearchString}" Need Text="{Binding SearchString, UpdateSourceTrigger=PropertyChanged}" and delete Click="Search"(Delete method Search) 2. OpenBullet2.Native Worldlists.xaml.cs position 137 FileName = path, Need FileName = path.Replace("\\", "/"), --- OpenBullet2.Native/Views/Pages/Wordlists.xaml | 8 +------- OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/OpenBullet2.Native/Views/Pages/Wordlists.xaml b/OpenBullet2.Native/Views/Pages/Wordlists.xaml index 322205b5b..b0e322917 100644 --- a/OpenBullet2.Native/Views/Pages/Wordlists.xaml +++ b/OpenBullet2.Native/Views/Pages/Wordlists.xaml @@ -40,13 +40,7 @@ Delete Not Found - - + diff --git a/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs b/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs index 552992dae..8b0b157b5 100644 --- a/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs +++ b/OpenBullet2.Native/Views/Pages/Wordlists.xaml.cs @@ -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) { @@ -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()