Skip to content

Commit

Permalink
Slight adjustment to meet one of the JDK8 setup condition valid (Moon…
Browse files Browse the repository at this point in the history
  • Loading branch information
rat-moonshine committed Oct 28, 2021
1 parent 4487787 commit f27dc9b
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,18 @@ package actionScripts.managers
case ComponentTypes.TYPE_OPENJAVA:
if (model.moonshineBridge.isJavaPresent() && model.moonshineBridge.javaVersionForTypeahead)
{
item.isAlreadyDownloaded = (model.moonshineBridge.javaVersionForTypeahead != "1.8.0") ? true : false;
if ((model.moonshineBridge.javaVersionForTypeahead != "1.8.0"))
{
item.isAlreadyDownloaded = true;
}
else if (model.moonshineBridge.javaVersionForTypeahead == "1.8.0" && model.moonshineBridge.isJava8Present())
{
item.isAlreadyDownloaded = true;
}
else
{
item.isAlreadyDownloaded = false;
}
}
else
{
Expand Down

0 comments on commit f27dc9b

Please sign in to comment.