mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-19 23:25:09 -05:00
Simplify recent projects config
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user