diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-08 04:51:58 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-08 04:51:58 +0200 |
commit | 623fbdd66f383d71d5fff02a3dcd10e260f387c5 (patch) | |
tree | e64eae7701dbfe26e4b1223351d0bd9cba549b07 /src | |
parent | Merge pull request #1118 from Kloen/monospace-font (diff) | |
parent | citra-qt: Trim recently used files list to size when insterting new item (diff) | |
download | yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.tar yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.tar.gz yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.tar.bz2 yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.tar.lz yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.tar.xz yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.tar.zst yuzu-623fbdd66f383d71d5fff02a3dcd10e260f387c5.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/citra_qt/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 11813a2a8..65b5fc9d6 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -297,6 +297,10 @@ void GMainWindow::StoreRecentFile(const QString& filename) QStringList recent_files = settings.value("recentFiles").toStringList(); recent_files.prepend(filename); recent_files.removeDuplicates(); + while (recent_files.size() > max_recent_files_item) { + recent_files.removeLast(); + } + settings.setValue("recentFiles", recent_files); UpdateRecentFiles(); |