Simplify recent projects config

This commit is contained in:
GriffinR 2023-12-28 09:16:23 -05:00
parent 6fedab9a22
commit 43ffc0bd36

View file

@ -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);