Replace magic number for open recent length with config setting (no gui yet, maybe later)

This commit is contained in:
Felix Kauselmann
2017-09-23 21:03:06 +02:00
parent 976daa3546
commit 6eb6b83efe
3 changed files with 6 additions and 5 deletions

View File

@ -71,7 +71,7 @@ void Configuration::updateOpenRecentList (QString path)
list.removeAll(path);
list.prepend(path);
//TODO: Make list lenght configurable
while (list.length() > 25)
while (list.length() > getOpenRecentSize())
{
list.removeLast();
}