diff --git a/CHANGELOG.md b/CHANGELOG.md index 630ea35..538f50e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +**[0.16.4] 2024-10-05** + +- Defined action update thread for actions for ScrollToSource + **[0.16.3] 2024-10-05** - Fix #103 #105: Defined action update thread for actions diff --git a/src/main/java/com/leinardi/pycharm/pylint/actions/ScrollToSource.java b/src/main/java/com/leinardi/pycharm/pylint/actions/ScrollToSource.java index 8679a93..6ec7771 100644 --- a/src/main/java/com/leinardi/pycharm/pylint/actions/ScrollToSource.java +++ b/src/main/java/com/leinardi/pycharm/pylint/actions/ScrollToSource.java @@ -16,6 +16,7 @@ package com.leinardi.pycharm.pylint.actions; +import com.intellij.openapi.actionSystem.ActionUpdateThread; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.PlatformDataKeys; import com.intellij.openapi.project.DumbAwareToggleAction; @@ -25,12 +26,18 @@ import com.intellij.ui.content.Content; import com.leinardi.pycharm.pylint.PylintPlugin; import com.leinardi.pycharm.pylint.toolwindow.PylintToolWindowPanel; +import org.jetbrains.annotations.NotNull; /** * Toggle the scroll to source setting. */ public final class ScrollToSource extends DumbAwareToggleAction { + @Override + public @NotNull ActionUpdateThread getActionUpdateThread() { + return ActionUpdateThread.EDT; + } + @Override public boolean isSelected(final AnActionEvent event) { final Project project = PlatformDataKeys.PROJECT.getData(event.getDataContext());