Detect change if switching between UTF-8-no-bom and UTF-8-with-bom - thx Minherre :)

Related to #8690
This commit is contained in:
Nikolaj Olsson 2024-08-01 20:05:27 +02:00
parent d7819ad7bd
commit d5bf8c3d01

View File

@ -35591,12 +35591,12 @@ namespace Nikse.SubtitleEdit.Forms
private int GetFastSubtitleHash()
{
return _subtitle.GetFastHashCode(_fileName + GetCurrentEncoding().BodyName);
return _subtitle.GetFastHashCode(_fileName + UiUtil.GetTextEncodingComboBoxCurrentEncoding(comboBoxEncoding.ComboBox).DisplayName);
}
private int GetFastSubtitleOriginalHash()
{
return _subtitleOriginal.GetFastHashCode(_subtitleOriginalFileName + GetCurrentEncoding().BodyName);
return _subtitleOriginal.GetFastHashCode(_subtitleOriginalFileName + UiUtil.GetTextEncodingComboBoxCurrentEncoding(comboBoxEncoding.ComboBox).DisplayName);
}
private void MergeSentencesToolStripMenuItemClick(object sender, EventArgs e)