From 23c9bd4b48dba384597a114f4abd6ecb7882cfea Mon Sep 17 00:00:00 2001 From: Taikelenn Date: Tue, 9 Jan 2024 11:49:38 +0200 Subject: [PATCH] Remove deprecated Scala functions --- .../aalto/cs/apluscourses/intellij/actions/ReplAction.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/scala/fi/aalto/cs/apluscourses/intellij/actions/ReplAction.scala b/src/main/scala/fi/aalto/cs/apluscourses/intellij/actions/ReplAction.scala index b23f84635..96c575dad 100644 --- a/src/main/scala/fi/aalto/cs/apluscourses/intellij/actions/ReplAction.scala +++ b/src/main/scala/fi/aalto/cs/apluscourses/intellij/actions/ReplAction.scala @@ -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 = {