Fix recent clear not deleting file with diff original file

This commit is contained in:
OmrSi 2022-01-22 22:37:36 +02:00
parent 9d9d1de0df
commit 0a25f4dd2b

View File

@ -4241,7 +4241,7 @@ namespace Nikse.SubtitleEdit.Forms
var clearHistoryMenuItem = new ToolStripMenuItem(LanguageSettings.Current.DvdSubRip.Clear);
clearHistoryMenuItem.Click += (sender, args) =>
{
Configuration.Settings.RecentFiles.Files.RemoveAll(entry => entry.FileName != _fileName);
Configuration.Settings.RecentFiles.Files.RemoveAll(entry => entry.FileName != _fileName || entry.FileName == _fileName && entry.OriginalFileName != _subtitleOriginalFileName);
UpdateRecentFilesUI();
};
UiUtil.FixFonts(clearHistoryMenuItem);