Skip to content

Commit

Permalink
JSON wizards: Read additional paths from settings
Browse files Browse the repository at this point in the history
Opens possibilities like the installers writings some.

Change-Id: Ie8c87731fb6bb9c7129032f64878e42e9bcf4cf0
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: <[email protected]>
Reviewed-by: Alessandro Portale <[email protected]>
  • Loading branch information
e4z9 committed Nov 24, 2022
1 parent b6d3333 commit 7a2901d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ FilePaths &JsonWizardFactory::searchPaths()
Core::ICore::resourcePath(WIZARD_PATH)};
for (const QString &environmentTemplateDirName : environmentTemplatesPaths())
m_searchPaths << FilePath::fromString(environmentTemplateDirName);
m_searchPaths << Utils::transform(
Core::ICore::settings()->value("Wizards/SearchPaths").toStringList(),
[](const QString &s) { return FilePath::fromUserInput(s); });
}

return m_searchPaths;
Expand Down

0 comments on commit 7a2901d

Please sign in to comment.