mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not add empty remote interpreter name to the list
This commit is contained in:
@@ -67,7 +67,11 @@ public class PySdkListCellRenderer extends ListCellRendererWrapper<Object> {
|
||||
else {
|
||||
name = sdk.getName();
|
||||
}
|
||||
if (name.startsWith("Remote")) name = StringUtil.trim(name.substring("Remote".length()));
|
||||
if (name.startsWith("Remote")) {
|
||||
final String trimmedRemote = StringUtil.trim(name.substring("Remote".length()));
|
||||
if (!trimmedRemote.isEmpty())
|
||||
name = trimmedRemote;
|
||||
}
|
||||
final String flavorName = flavor == null ? "Python" : flavor.getName();
|
||||
if (name.startsWith(flavorName)) name = name.substring(flavorName.length() + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user