diff --git a/LarkatorGUI/ArkReader.cs b/LarkatorGUI/ArkReader.cs index 4579eb7..f74c548 100644 --- a/LarkatorGUI/ArkReader.cs +++ b/LarkatorGUI/ArkReader.cs @@ -45,7 +45,8 @@ public async Task PerformConversion(bool force = false) await RunArkTools(); ClassMapping.Clear(); } - else if (ClassMapping.Count == 0) + + if (ClassMapping.Count == 0) { await LoadClassesJson(); } diff --git a/LarkatorGUI/MainWindow.xaml.cs b/LarkatorGUI/MainWindow.xaml.cs index ddc1971..43c8571 100644 --- a/LarkatorGUI/MainWindow.xaml.cs +++ b/LarkatorGUI/MainWindow.xaml.cs @@ -265,22 +265,6 @@ private async void SaveSearch_Click(object sender, RoutedEventArgs e) MarkSearchesChanged(); } -#if OBSOLETE - private async void ProcessNow_Click(object sender, RoutedEventArgs e) - { - if (IsLoading) return; - - await ReReadArk(true); - } - - private async void WildTamed_Toggle(object sender, RoutedEventArgs e) - { - var btn = (ToggleButton)sender; - arkReaderWild.Tamed = (btn.IsChecked == true); - await ReReadArk(true); - } -#endif - private void AdjustableInteger_MouseWheel(object sender, MouseWheelEventArgs e) { var tb = (TextBlock)sender; @@ -396,7 +380,8 @@ private async Task ReReadArk(bool force = false) await PerformConversion(force); await LoadSearchSpecies(); - UpdateSearchResults(new List()); + var currentSearch = searchesList.SelectedItems.Cast().ToList(); + UpdateSearchResults(currentSearch); } private async Task LoadSearchSpecies()