mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
update combobox on add local interpreter
This commit is contained in:
@@ -115,7 +115,10 @@ public class PyActiveSdkConfigurable implements UnnamedConfigurable {
|
||||
@Override
|
||||
public void consume(Sdk sdk) {
|
||||
if (sdk == null) return;
|
||||
mySdkAdded = true;
|
||||
mySdkAdded = myProjectSdksModel.findSdk(sdk) == null;
|
||||
if (mySdkAdded) {
|
||||
myProjectSdksModel.addSdk(sdk);
|
||||
}
|
||||
updateSdkList(false);
|
||||
mySdkCombo.getModel().setSelectedItem(sdk);
|
||||
myPackagesPanel.updatePackages(new PyPackageManagementService(myProject, sdk));
|
||||
|
||||
Reference in New Issue
Block a user