Python: disable generateKit button after clicking

The button should only be enabled if no kit can be associated with the
currently selected python interpreter.

Change-Id: I0357bf999c8abd2bc11b4ac5b2e79a10a0d94f01
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2024-01-15 14:24:19 +01:00
parent d67379481c
commit fb2fd513be

View File

@@ -572,6 +572,7 @@ void InterpreterOptionsWidget::generateKit()
const QModelIndex &index = m_view->currentIndex();
if (index.isValid())
PythonSettings::addKitsForInterpreter(m_model.itemAt(index.row())->itemData);
m_generateKitButton->setEnabled(false);
}
void InterpreterOptionsWidget::cleanUp()