Remove async due to crash in Netflix quality check

This commit is contained in:
Nikolaj Olsson 2024-11-19 07:54:50 +01:00
parent 4aaaa72a08
commit 6e3f905f6d

View File

@ -150,14 +150,14 @@ namespace Nikse.SubtitleEdit.Forms
comboBoxLanguage.SelectedIndexChanged += RuleCheckedChanged; comboBoxLanguage.SelectedIndexChanged += RuleCheckedChanged;
} }
private async void RuleCheckedChanged(object sender, EventArgs e) private void RuleCheckedChanged(object sender, EventArgs e)
{ {
if (_loading) if (_loading)
{ {
return; 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); labelTotal.Text = string.Format(LanguageSettings.Current.NetflixQualityCheck.FoundXIssues, _netflixQualityController.Records.Count);
linkLabelOpenReportFolder.Left = labelTotal.Left + labelTotal.Width + 15; linkLabelOpenReportFolder.Left = labelTotal.Left + labelTotal.Width + 15;
linkLabelOpenReportFolder.Text = LanguageSettings.Current.NetflixQualityCheck.OpenReportInFolder; linkLabelOpenReportFolder.Text = LanguageSettings.Current.NetflixQualityCheck.OpenReportInFolder;
@ -176,7 +176,6 @@ namespace Nikse.SubtitleEdit.Forms
} }
listViewFixes.Items.AddRange(listViewItems.ToArray()); listViewFixes.Items.AddRange(listViewItems.ToArray());
listViewFixes.EndUpdate(); listViewFixes.EndUpdate();
} }