From 6e3f905f6d093cc320ab89709dc3d2d24cbe18d5 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Tue, 19 Nov 2024 07:54:50 +0100 Subject: [PATCH] Remove async due to crash in Netflix quality check --- src/ui/Forms/NetflixFixErrors.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/Forms/NetflixFixErrors.cs b/src/ui/Forms/NetflixFixErrors.cs index 74191a9cf..077ab0bcd 100644 --- a/src/ui/Forms/NetflixFixErrors.cs +++ b/src/ui/Forms/NetflixFixErrors.cs @@ -150,14 +150,14 @@ namespace Nikse.SubtitleEdit.Forms comboBoxLanguage.SelectedIndexChanged += RuleCheckedChanged; } - private async void RuleCheckedChanged(object sender, EventArgs e) + private void RuleCheckedChanged(object sender, EventArgs e) { if (_loading) { return; } - await Task.Run(() => _netflixQualityController.RunChecks(_subtitle, GetAllSelectedChecks())).ConfigureAwait(true); + _netflixQualityController.RunChecks(_subtitle, GetAllSelectedChecks()); labelTotal.Text = string.Format(LanguageSettings.Current.NetflixQualityCheck.FoundXIssues, _netflixQualityController.Records.Count); linkLabelOpenReportFolder.Left = labelTotal.Left + labelTotal.Width + 15; linkLabelOpenReportFolder.Text = LanguageSettings.Current.NetflixQualityCheck.OpenReportInFolder; @@ -176,7 +176,6 @@ namespace Nikse.SubtitleEdit.Forms } listViewFixes.Items.AddRange(listViewItems.ToArray()); - listViewFixes.EndUpdate(); }