Skip to content

Commit

Permalink
override ToggleLogAction#getActionUpdateThread
Browse files Browse the repository at this point in the history
fixes #24
  • Loading branch information
y-polek committed Jun 1, 2024
1 parent 4279f77 commit 4f78fc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/dev/polek/adbwifi/actions/ToggleLogAction.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.polek.adbwifi.actions

import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.ToggleAction
import com.intellij.openapi.application.ApplicationManager
Expand All @@ -15,4 +16,6 @@ class ToggleLogAction : ToggleAction(), DumbAware {
override fun setSelected(e: AnActionEvent, state: Boolean) {
service.isLogVisible = state
}

override fun getActionUpdateThread() = ActionUpdateThread.EDT
}

0 comments on commit 4f78fc5

Please sign in to comment.