From 2c9a151bd9fe20ecf514b0436b2f13ae06600a06 Mon Sep 17 00:00:00 2001 From: TheBlob42 Date: Mon, 26 Aug 2024 11:04:00 +0200 Subject: [PATCH] Fix deprecated ActionUpdateThread.OLD_EDT --- .../eu/theblob42/idea/whichkey/WhichKeyShortcutKeyAction.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/eu/theblob42/idea/whichkey/WhichKeyShortcutKeyAction.kt b/src/main/kotlin/eu/theblob42/idea/whichkey/WhichKeyShortcutKeyAction.kt index 905f68e..cd587c1 100644 --- a/src/main/kotlin/eu/theblob42/idea/whichkey/WhichKeyShortcutKeyAction.kt +++ b/src/main/kotlin/eu/theblob42/idea/whichkey/WhichKeyShortcutKeyAction.kt @@ -1,5 +1,6 @@ package eu.theblob42.idea.whichkey +import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.PlatformDataKeys @@ -32,6 +33,10 @@ class WhichKeyShortcutKeyAction: AnAction(), DumbAware { vimShortcutKeyAction.update(actionEvent) } + override fun getActionUpdateThread(): ActionUpdateThread { + return ActionUpdateThread.EDT + } + override fun actionPerformed(actionEvent: AnActionEvent) { PopupConfig.hidePopup()