Skip to content

Commit

Permalink
Merge pull request #1084 from Aalto-LeTech/update-scala-api
Browse files Browse the repository at this point in the history
Remove calls to deprecated Scala functions
  • Loading branch information
Taikelenn authored Jan 9, 2024
2 parents 7b80111 + 23c9bd4 commit c1504b1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ class ReplAction extends RunConsoleAction {
override def update(e: AnActionEvent): Unit = {
if (e.getProject == null || e.getProject.isDisposed) return // scalastyle:ignore

if (e.getProject.hasScala) {
ScalaActionUtil.enablePresentation(e)
} else {
ScalaActionUtil.disablePresentation(e)
}
e.getPresentation.setEnabledAndVisible(e.getProject.hasScala)
}

override def actionPerformed(@NotNull e: AnActionEvent): Unit = {
Expand Down

0 comments on commit c1504b1

Please sign in to comment.