MCPcopy Create free account
hub / github.com/YACReader/yacreader / updateOpenRecentList

Method updateOpenRecentList

YACReader/configuration.cpp:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 settings->setValue(QUICK_NAVI_MODE, false);
41}
42void Configuration::updateOpenRecentList(QString path)
43{
44 QStringList list = openRecentList();
45 list.removeAll(path);
46 list.prepend(path);
47 // TODO: Make list lenght configurable
48 while (list.length() > getOpenRecentSize()) {
49 list.removeLast();
50 }
51 settings->setValue("recentFiles", list);
52}

Callers 2

openComicMethod · 0.80
openFolderFromPathMethod · 0.80

Calls 1

setValueMethod · 0.80

Tested by

no test coverage detected