Merge pull request #8925 from ivandrofly/typo-fix

Fix typo in variable name 'ImportedSubitle' to 'ImportedSubtitle' 🔃
This commit is contained in:
Nikolaj Olsson 2024-10-22 16:17:53 +02:00 committed by GitHub
commit 46d27c25d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ namespace Nikse.SubtitleEdit.Forms
{
public partial class ImportUnknownFormat : Form
{
public Subtitle ImportedSubitle { get; private set; }
public Subtitle ImportedSubtitle { get; private set; }
private readonly Timer _refreshTimer = new Timer();
public ImportUnknownFormat(string fileName)
@ -47,10 +47,10 @@ namespace Nikse.SubtitleEdit.Forms
private void GeneratePreviewReal()
{
var uknownFormatImporter = new UnknownFormatImporter { UseFrames = radioButtonTimeCodeFrames.Checked };
ImportedSubitle = uknownFormatImporter.AutoGuessImport(textBoxText.Lines.ToList());
groupBoxImportResult.Text = string.Format(LanguageSettings.Current.ImportText.PreviewLinesModifiedX, ImportedSubitle.Paragraphs.Count);
SubtitleListview1.Fill(ImportedSubitle);
if (ImportedSubitle.Paragraphs.Count > 0)
ImportedSubtitle = uknownFormatImporter.AutoGuessImport(textBoxText.Lines.ToList());
groupBoxImportResult.Text = string.Format(LanguageSettings.Current.ImportText.PreviewLinesModifiedX, ImportedSubtitle.Paragraphs.Count);
SubtitleListview1.Fill(ImportedSubtitle);
if (ImportedSubtitle.Paragraphs.Count > 0)
{
SubtitleListview1.SelectIndexAndEnsureVisible(0);
}

View File

@ -18638,9 +18638,9 @@ namespace Nikse.SubtitleEdit.Forms
{
if (form.ShowDialog(this) == DialogResult.OK)
{
if (form.ImportedSubitle?.Paragraphs.Count > 0)
if (form.ImportedSubtitle?.Paragraphs.Count > 0)
{
_subtitle = form.ImportedSubitle;
_subtitle = form.ImportedSubtitle;
_fileName = null;
SubtitleListview1.Fill(_subtitle, _subtitleOriginal);
SetTitle();