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
|
||||
additionalPaths.append("/usr/local/bin");
|
||||
|
||||
registerAspect(&dockerBinaryPath);
|
||||
dockerBinaryPath.setExpectedKind(PathChooser::ExistingCommand);
|
||||
dockerBinaryPath.setDefaultFilePath(
|
||||
FilePath::fromString("docker").searchInPath(additionalPaths));
|
||||
|
||||
@@ -12,7 +12,7 @@ class DockerSettings final : public Core::PagedSettings
|
||||
public:
|
||||
DockerSettings();
|
||||
|
||||
Utils::FilePathAspect dockerBinaryPath;
|
||||
Utils::FilePathAspect dockerBinaryPath{this};
|
||||
};
|
||||
|
||||
} // Docker::Internal
|
||||
|
||||
Reference in New Issue
Block a user