ProjectExplorer: declare only relevant aspects as features

This will disable python kits for all Wizards that require a valid Qt.

Change-Id: I4a8d6dd60629ddb556e49c067200acba8ef080d2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
David Schulz
2024-01-25 11:50:00 +01:00
parent bd81ef4127
commit d9404208da
2 changed files with 5 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ public:
QSet<Id> availableFeatures(const Kit *k) const override
{
if (k->isAspectRelevant(PythonKitAspect::id()) && PythonKitAspect::python(k))
if (PythonKitAspect::python(k))
return {PythonKitAspect::id()};
return {};
}