mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show packages for detected sdk, fixed NPE if no interpreter selected
This commit is contained in:
@@ -145,7 +145,7 @@ public class PyActiveSdkConfigurable implements UnnamedConfigurable {
|
||||
dialog.show();
|
||||
return;
|
||||
}
|
||||
if (!PySdkListCellRenderer.SEPARATOR.equals(item.toString()))
|
||||
if (!PySdkListCellRenderer.SEPARATOR.equals(item))
|
||||
super.setSelectedItem(item);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.intellij.openapi.projectRoots.impl.ProjectJdkImpl;
|
||||
public class PyDetectedSdk extends ProjectJdkImpl {
|
||||
public PyDetectedSdk(String name, SdkTypeId sdkType) {
|
||||
super(name, sdkType);
|
||||
setHomePath(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user