Skip to content

Commit

Permalink
Set the ActionUpdateThread for FlutterNewProjectAction (#7804)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwren authored Nov 20, 2024
1 parent 30b628c commit 9a26271
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.intellij.icons.AllIcons;
import com.intellij.ide.impl.NewProjectUtil;
import com.intellij.ide.projectWizard.NewProjectWizard;
import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.DumbAware;
Expand Down Expand Up @@ -45,6 +46,12 @@ public void actionPerformed(@NotNull AnActionEvent e) {
NewProjectUtil.createNewProject(wizard);
}

@Override
@NotNull
public ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}

@NotNull
Icon getFlutterDecoratedIcon() {
Icon icon = AllIcons.Welcome.CreateNewProject;
Expand Down

0 comments on commit 9a26271

Please sign in to comment.