forked from qt-creator/qt-creator
QmlDesigner: Make DS find the qmlpuppet on macOS
The puppet is now build into a different directory. This patch updates the qml2puppet search path for DS. Change-Id: Ib522df599f429914275700813fa8d1e526b1ce4a Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
committed by
Thomas Hartmann
parent
63022d08ea
commit
583e53cb08
@@ -137,13 +137,6 @@ bool ExternalDependencies::hasStartupTarget() const
|
||||
}
|
||||
|
||||
namespace {
|
||||
Utils::FilePath defaultPuppetFallbackDirectory()
|
||||
{
|
||||
if (Utils::HostOsInfo::isMacHost())
|
||||
return Core::ICore::libexecPath("qmldesigner");
|
||||
|
||||
return Core::ICore::libexecPath();
|
||||
}
|
||||
|
||||
Utils::FilePath qmlPuppetExecutablePath(const Utils::FilePath &workingDirectory)
|
||||
{
|
||||
@@ -156,7 +149,7 @@ Utils::FilePath qmlPuppetFallbackDirectory(const DesignerSettings &settings)
|
||||
auto puppetFallbackDirectory = Utils::FilePath::fromString(
|
||||
settings.value(DesignerSettingsKey::PUPPET_DEFAULT_DIRECTORY).toString());
|
||||
if (puppetFallbackDirectory.isEmpty() || !puppetFallbackDirectory.exists())
|
||||
return defaultPuppetFallbackDirectory();
|
||||
return Core::ICore::libexecPath();
|
||||
return puppetFallbackDirectory;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user