[Python Onboarding] There is no need to require a module to open the interpreter settings

Also, silently returning from the function will leave the link non-working, what is confusing for the user


(cherry picked from commit 7b0384c5810ab38268420f172c7e3ddbef0d7b15)

IJ-CR-151630

GitOrigin-RevId: 15bdac04edde15e1b181e18d9006485c141b6308
This commit is contained in:
Alex Plate
2024-12-05 17:53:18 +02:00
committed by intellij-monorepo-bot
parent 845d1ddf90
commit 2ab18edac8

View File

@@ -179,7 +179,7 @@ abstract class PythonBasedLangSupport : AbstractLangSupport() {
isSdkConfigured(project)
}
val configureCallbackId = LearningUiManager.addCallback {
val module = project.modules.singleOrNull() ?: return@addCallback
val module = project.modules.singleOrNull()
PyInterpreterInspection.InterpreterSettingsQuickFix.showPythonInterpreterSettings(project, module)
}
if (useUserProjects || isLearningProject(project, primaryLanguage)) {