Skip to content

Commit

Permalink
Fix loading extension path from project config (#2956)
Browse files Browse the repository at this point in the history
Extension path was getting saved under the "extensionsPath" key
but getting read from the "extensionsFolder" key.

Read the value back from the written extensionsPath key.

(cherry picked from commit 647d240)
  • Loading branch information
fmoo authored and bjorn committed Dec 15, 2020
1 parent 01247a8 commit e68a57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiled/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool Project::load(const QString &fileName)

const QJsonObject project = document.object();

mExtensionsPath = absolute(dir, project.value(QLatin1String("extensionsFolder")).toString(QLatin1String("extensions")));
mExtensionsPath = absolute(dir, project.value(QLatin1String("extensionsPath")).toString(QLatin1String("extensions")));
mObjectTypesFile = absolute(dir, project.value(QLatin1String("objectTypesFile")).toString());
mAutomappingRulesFile = absolute(dir, project.value(QLatin1String("automappingRulesFile")).toString());

Expand Down

0 comments on commit e68a57c

Please sign in to comment.