mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Do not freeze up UI when running Netflix check rules
This commit is contained in:
parent
5dd6192b4f
commit
4b609fe68c
@ -9,6 +9,7 @@ using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using static Nikse.SubtitleEdit.Forms.FixCommonErrors;
|
||||
|
||||
@ -134,14 +135,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
comboBoxLanguage.EndUpdate();
|
||||
}
|
||||
|
||||
private void RuleCheckedChanged(object sender, EventArgs e)
|
||||
private async void RuleCheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (_loading)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_netflixQualityController.RunChecks(_subtitle, GetAllSelectedChecks());
|
||||
await Task.Run(() => _netflixQualityController.RunChecks(_subtitle, GetAllSelectedChecks())).ConfigureAwait(true);
|
||||
labelTotal.Text = string.Format(LanguageSettings.Current.NetflixQualityCheck.FoundXIssues, _netflixQualityController.Records.Count);
|
||||
linkLabelOpenReportFolder.Left = labelTotal.Left + labelTotal.Width + 15;
|
||||
linkLabelOpenReportFolder.Text = LanguageSettings.Current.NetflixQualityCheck.OpenReportInFolder;
|
||||
|
Loading…
Reference in New Issue
Block a user