Skip to content

Commit

Permalink
don't show <No SDK> when creating new project unless none exist
Browse files Browse the repository at this point in the history
  • Loading branch information
l-Luna committed Apr 18, 2022
1 parent dfb362a commit 0981c0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static ComboBox<CyclicSdk> sdkChooser(@Nullable CyclicSdk current){
List<CyclicSdk> toShow = new ArrayList<>(CyclicSdks.getInstance().compilers);
if(current != null && !toShow.contains(current))
toShow.add(0, current);
if(!toShow.contains(CyclicSdks.DUMMY_SDK))
if(!toShow.contains(CyclicSdks.DUMMY_SDK) && current != null /*editing config*/ || toShow.isEmpty())
toShow.add(0, CyclicSdks.DUMMY_SDK);

var box = new ComboBox<>(toShow.toArray(CyclicSdk[]::new));
Expand Down

0 comments on commit 0981c0f

Please sign in to comment.