Prevent duplicate entries in recent projects

This commit is contained in:
ITAYC0HEN 2021-03-27 12:35:33 +03:00
parent da457b0682
commit 6c1b6f9981

View File

@ -791,5 +791,8 @@ void Configuration::addRecentProject(QString file)
QStringList files = getRecentProjects();
files.removeAll(file);
files.prepend(file);
// Make sure we don't keep duplicate entries
files.removeDuplicates();
setRecentProjects(files);
}