mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not duplicate existing sdks in create virtualenv
This commit is contained in:
@@ -89,7 +89,6 @@ public class PythonSdkDetailsDialog extends DialogWrapper {
|
||||
|
||||
@Override
|
||||
protected void dispose() {
|
||||
myInterpreterList.disposeModel();
|
||||
myProjectSdksModel.removeListener(myListener);
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ public class PythonSdkDetailsStep extends BaseListPopupStep<String> {
|
||||
final List<PythonSdkFlavor> flavors = PythonSdkFlavor.getApplicableFlavors(false);
|
||||
for (PythonSdkFlavor flavor : flavors) {
|
||||
final Collection<String> strings = flavor.suggestHomePaths();
|
||||
for (String string : strings) {
|
||||
for (String string : SdkConfigurationUtil.filterExistingPaths(PythonSdkType.getInstance(), strings, myExistingSdks)) {
|
||||
allSdks.add(new PyDetectedSdk(string));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user