File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
flutter-idea/src/io/flutter/actions Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
package io .flutter .actions ;
7
7
8
- import com .intellij .openapi .actionSystem .AnAction ;
9
- import com .intellij .openapi .actionSystem .AnActionEvent ;
10
- import com .intellij .openapi .actionSystem .Presentation ;
8
+ import com .intellij .openapi .actionSystem .*;
11
9
import com .intellij .openapi .project .DumbAwareAction ;
12
10
import com .intellij .openapi .project .Project ;
13
11
import io .flutter .utils .FlutterModuleUtils ;
@@ -40,6 +38,10 @@ public abstract class FlutterRetargetAppAction extends DumbAwareAction {
40
38
myPlaces .addAll (Arrays .asList (places ));
41
39
}
42
40
41
+ public @ NotNull ActionUpdateThread getActionUpdateThread () {
42
+ return ActionUpdateThread .BGT ;
43
+ }
44
+
43
45
@ Override
44
46
public void actionPerformed (AnActionEvent e ) {
45
47
final AnAction action = getAction (e .getProject ());
Original file line number Diff line number Diff line change @@ -87,7 +87,17 @@ List<EditCommand> editCommands = [
87
87
),
88
88
Subst (
89
89
path:
90
- 'flutter-idea/src/io/flutter/actions/DeviceSelectorRefresherAction.java' ,
90
+ 'flutter-idea/src/io/flutter/actions/DeviceSelectorRefresherAction.java' ,
91
+ initial: '''
92
+ public @NotNull ActionUpdateThread getActionUpdateThread() {
93
+ return ActionUpdateThread.BGT;
94
+ }
95
+ ''' ,
96
+ replacement: '' ,
97
+ version: '2022.1' ,
98
+ ),
99
+ Subst (
100
+ path: 'flutter-idea/src/io/flutter/actions/FlutterRetargetAppAction.java' ,
91
101
initial: '''
92
102
public @NotNull ActionUpdateThread getActionUpdateThread() {
93
103
return ActionUpdateThread.BGT;
You can’t perform that action at this time.
0 commit comments