Skip to content

Commit 056a237

Browse files
committed
#2845 Set update thread for the toggle action to BGT
Fixes #2845
1 parent 061cb7f commit 056a237

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: plugin/core/src/main/java/com/perl5/lang/perl/idea/configuration/settings/sdk/PerlToggleSourceRootAction.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2020 Alexandr Evstigneev
2+
* Copyright 2015-2024 Alexandr Evstigneev
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616

1717
package com.perl5.lang.perl.idea.configuration.settings.sdk;
1818

19+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
1920
import com.intellij.openapi.actionSystem.AnActionEvent;
2021
import com.intellij.openapi.actionSystem.ToggleAction;
2122
import com.intellij.openapi.project.ProjectBundle;
@@ -41,6 +42,11 @@ public PerlToggleSourceRootAction(@NotNull PerlContentEntriesTreeEditor editor,
4142
myEditor = editor;
4243
}
4344

45+
@Override
46+
public @NotNull ActionUpdateThread getActionUpdateThread() {
47+
return ActionUpdateThread.BGT;
48+
}
49+
4450
@Override
4551
public boolean isSelected(@NotNull AnActionEvent e) {
4652
VirtualFile[] files = myEditor.getSelectedFiles();

0 commit comments

Comments
 (0)