Skip to content

Commit

Permalink
Merge pull request #108 from leinardi/old-edt
Browse files Browse the repository at this point in the history
Defined action update thread for actions for ScrollToSource
  • Loading branch information
leinardi authored Oct 7, 2024
2 parents 1f09943 + 18fe40e commit 92cc796
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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());
Expand Down

0 comments on commit 92cc796

Please sign in to comment.