forked from qt-creator/qt-creator
Docker: Register settings aspect more directly
Change-Id: Iaf36d476f53eab459cba4d0e64e55b73a395beea Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -41,7 +41,6 @@ DockerSettings::DockerSettings()
|
|||||||
else
|
else
|
||||||
additionalPaths.append("/usr/local/bin");
|
additionalPaths.append("/usr/local/bin");
|
||||||
|
|
||||||
registerAspect(&dockerBinaryPath);
|
|
||||||
dockerBinaryPath.setExpectedKind(PathChooser::ExistingCommand);
|
dockerBinaryPath.setExpectedKind(PathChooser::ExistingCommand);
|
||||||
dockerBinaryPath.setDefaultFilePath(
|
dockerBinaryPath.setDefaultFilePath(
|
||||||
FilePath::fromString("docker").searchInPath(additionalPaths));
|
FilePath::fromString("docker").searchInPath(additionalPaths));
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class DockerSettings final : public Core::PagedSettings
|
|||||||
public:
|
public:
|
||||||
DockerSettings();
|
DockerSettings();
|
||||||
|
|
||||||
Utils::FilePathAspect dockerBinaryPath;
|
Utils::FilePathAspect dockerBinaryPath{this};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Docker::Internal
|
} // Docker::Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user