diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-08 03:00:08 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-08 03:00:08 +0200 |
commit | 06b3891c66ee42645d760ea56cbde8e2769d26a6 (patch) | |
tree | e64eae7701dbfe26e4b1223351d0bd9cba549b07 | |
parent | Merge pull request #1118 from Kloen/monospace-font (diff) | |
download | yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.tar yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.tar.gz yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.tar.bz2 yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.tar.lz yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.tar.xz yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.tar.zst yuzu-06b3891c66ee42645d760ea56cbde8e2769d26a6.zip |
-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(); |