ProjectExplorer: fix remove directory action context

This action is only available in the generic project so do not show it
on every folder.

Change-Id: I5ba0f7d966e0b88068df7e5e5c481b05e5358019
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2024-09-13 09:12:15 +02:00
parent c2f24b53c6
commit 4248913f95

View File

@@ -718,7 +718,7 @@ void setupGenericProject(QObject *guard)
});
ActionBuilder removeDirAction(guard, "GenericProject.RemoveDir");
removeDirAction.setContext(PEC::C_PROJECT_TREE);
removeDirAction.setContext(Constants::GENERICPROJECT_ID);
removeDirAction.setText(Tr::tr("Remove Directory"));
removeDirAction.addToContainer(PEC::M_FOLDERCONTEXT, PEC::G_FOLDER_OTHER);
removeDirAction.addOnTriggered([] {