Merge pull request #5728 from OmrSi/fix-recent-clear-for-file-with-original

Fix recent clear not deleting file with diff original file
This commit is contained in:
Nikolaj Olsson 2022-01-23 16:54:09 +01:00 committed by GitHub
commit 956475675e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);