From 0981c0f25393675ab27dc3e68e24804b27624819 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 18 Apr 2022 15:03:09 +0100 Subject: [PATCH] don't show when creating new project unless none exist --- src/main/java/cyclic/intellij/model/config/CompilerOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cyclic/intellij/model/config/CompilerOptions.java b/src/main/java/cyclic/intellij/model/config/CompilerOptions.java index 5047f03..805b8ef 100644 --- a/src/main/java/cyclic/intellij/model/config/CompilerOptions.java +++ b/src/main/java/cyclic/intellij/model/config/CompilerOptions.java @@ -24,7 +24,7 @@ public static ComboBox sdkChooser(@Nullable CyclicSdk current){ List 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));