Skip to content

Commit

Permalink
Revert "[extract] Use multithreading for extraction."
Browse files Browse the repository at this point in the history
This reverts commit a009b37.
  • Loading branch information
num0005 committed Jul 17, 2024
1 parent cda372f commit e6bca62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2729,13 +2729,13 @@ private async void ExtractTags(object sender, RoutedEventArgs e)
List<Task> itemsToExtract = new();
foreach (string tag in extract_tag_list.Items)
{
itemsToExtract.Add(Task.Run(() => toolkit.ExtractTags(tag, moveExtractedFiles, extractBitmapsAsTGA)));
}
itemsToExtract.Add(toolkit.ExtractTags(tag, moveExtractedFiles, extractBitmapsAsTGA));
}

Trace.WriteLine($"Dispatching {itemsToExtract.Count} extractions.");
await Task.WhenAll(itemsToExtract);

if (keep_extract_list.IsChecked != true)
if (keep_extract_list.IsChecked != true)
{
extract_tag_list.Items.Clear();
}
Expand Down

0 comments on commit e6bca62

Please sign in to comment.