From 43ffc0bd368654fbdccb54c5946993a78f971e32 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Thu, 28 Dec 2023 09:16:23 -0500 Subject: [PATCH] Simplify recent projects config --- src/config.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 1d9ae8e2..61a6fc21 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -319,9 +319,7 @@ QString PorymapConfig::getConfigFilepath() { void PorymapConfig::parseConfigKeyValue(QString key, QString value) { if (key == "recent_project") { - QStringList paths = value.split(",", Qt::SkipEmptyParts); - for (auto path : paths) - this->recentProjects.append(path); + this->recentProjects = value.split(",", Qt::SkipEmptyParts); this->recentProjects.removeDuplicates(); } else if (key == "reopen_on_launch") { this->reopenOnLaunch = getConfigBool(key, value);