Skip to content

Commit

Permalink
override getActionUpdateThread for OpenRecorderAction
Browse files Browse the repository at this point in the history
  • Loading branch information
dantimashov authored and nizienko committed May 3, 2024
1 parent eee85a7 commit eb7a5f8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.remoterobot.recorder.action

import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.DumbAware
Expand All @@ -14,5 +15,9 @@ internal class OpenRecorderAction : AnAction(), DumbAware {
override fun update(e: AnActionEvent) {
e.presentation.isEnabled = RecorderService.getInstance().isOpened.not()
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
}
}

0 comments on commit eb7a5f8

Please sign in to comment.