From c63d8e0865a80c412321f6eb63f62b20aa61726f Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Mon, 21 Oct 2024 13:41:36 +0100 Subject: [PATCH] Fix typo in variable name 'ImportedSubitle' to 'ImportedSubtitle' Corrected the misspelled variable name across both Main.cs and ImportUnknownFormat.cs files. Ensured consistent and accurate reference to 'ImportedSubtitle' for better code readability and functionality. Signed-off-by: Ivandro Jao --- src/ui/Forms/ImportUnknownFormat.cs | 10 +++++----- src/ui/Forms/Main.cs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/Forms/ImportUnknownFormat.cs b/src/ui/Forms/ImportUnknownFormat.cs index 7342fbca6..bf18b86ac 100644 --- a/src/ui/Forms/ImportUnknownFormat.cs +++ b/src/ui/Forms/ImportUnknownFormat.cs @@ -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); } diff --git a/src/ui/Forms/Main.cs b/src/ui/Forms/Main.cs index 8e6cea989..d95ee1e6b 100644 --- a/src/ui/Forms/Main.cs +++ b/src/ui/Forms/Main.cs @@ -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();