Simplify recent projects config
This commit is contained in:
parent
6fedab9a22
commit
43ffc0bd36
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue