Skip to content

Commit

Permalink
Specify the thread to use for the connection list clear action (#5125)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecKazakova committed Apr 5, 2024
1 parent 2c54d9e commit aa41c0b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app.cash.sqldelight.intellij.run.window
import app.cash.sqldelight.dialect.api.ConnectionManager
import app.cash.sqldelight.intellij.run.ConnectionOptions
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindowManager
Expand Down Expand Up @@ -44,6 +45,8 @@ internal class ConnectionListPanel(
connectionOptions.unselectOption()
updateModel()
}

override fun getActionUpdateThread() = ActionUpdateThread.EDT
}

init {
Expand Down

0 comments on commit aa41c0b

Please sign in to comment.