mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-22324 Don't show not selected invalid interpreters in the interpreters list
This commit is contained in:
+3
@@ -315,6 +315,9 @@ public class PyActiveSdkConfigurable implements UnnamedConfigurable {
|
||||
boolean remoteSeparator = true;
|
||||
boolean separator = true;
|
||||
for (Sdk sdk : sdkList) {
|
||||
if (PythonSdkType.isInvalid(sdk) && !sdk.equals(selection)) {
|
||||
continue;
|
||||
}
|
||||
if (!PythonSdkType.isVirtualEnv(sdk) && !PythonSdkType.isRemote(sdk) && separator) {
|
||||
items.add(PySdkListCellRenderer.SEPARATOR);
|
||||
separator = false;
|
||||
|
||||
Reference in New Issue
Block a user