CompilationDataManager: Fix position of main action in menu

Amends 56f9493445.

Change-Id: Ia00f25dab559422500b1287643cce7a7a6730ee4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-02-05 08:51:54 +01:00
parent 9762f779e1
commit b5b87cbd12

View File

@@ -56,7 +56,8 @@ class CompilationDatabaseProjectManagerPlugin final : public ExtensionSystem::IP
ActionBuilder(this, CHANGEROOTDIR)
.setText(Tr::tr("Change Root Directory"))
.bindContextAction(&changeRootAction)
.addToContainer(ProjectExplorer::Constants::M_PROJECTCONTEXT)
.addToContainer(ProjectExplorer::Constants::M_PROJECTCONTEXT,
ProjectExplorer::Constants::G_PROJECT_TREE)
.addOnTriggered(ProjectTree::instance(), &ProjectTree::changeProjectRootDirectory);
const auto onProjectChanged = [changeRootAction] {