Merge pull request #4973 from OmrSi/recent-file-clear-patch

Don't remove current file when clearing recent files
This commit is contained in:
Nikolaj Olsson 2021-04-11 13:26:53 +02:00 committed by GitHub
commit 4692fc840d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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