File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /*
1+ /*
22 * Copyright 2016 The Chromium Authors. All rights reserved.
33 * Use of this source code is governed by a BSD-style license that can be
44 * found in the LICENSE file.
1515import com .intellij .openapi .actionSystem .ActionToolbar ;
1616import com .intellij .openapi .application .ApplicationManager ;
1717import com .intellij .openapi .application .ModalityState ;
18+ import com .intellij .openapi .application .ReadAction ;
1819import com .intellij .openapi .fileChooser .FileChooser ;
1920import com .intellij .openapi .fileChooser .FileChooserDescriptor ;
2021import com .intellij .openapi .fileChooser .FileChooserDescriptorFactory ;
@@ -110,7 +111,7 @@ public class FlutterSettingsConfigurable implements SearchableConfigurable {
110111 }
111112
112113 private void init () {
113- final FlutterSdk sdk = com . intellij . openapi . application . ReadAction .compute (() -> FlutterSdk .getIncomplete (myProject ));
114+ final FlutterSdk sdk = ReadAction .compute (() -> FlutterSdk .getIncomplete (myProject ));
114115 if (sdk != null ) {
115116 previousSdkVersion = sdk .getVersion ();
116117 }
@@ -312,7 +313,7 @@ public void apply() throws ConfigurationException {
312313
313314 @ Override
314315 public void reset () {
315- final FlutterSdk sdk = com . intellij . openapi . application . ReadAction .compute (() -> FlutterSdk .getIncomplete (myProject ));
316+ final FlutterSdk sdk = ReadAction .compute (() -> FlutterSdk .getIncomplete (myProject ));
316317 final String path = sdk != null ? sdk .getHomePath () : "" ;
317318
318319 // Set this after populating the combo box to display correctly when the Flutter SDK is unset.
You can’t perform that action at this time.
0 commit comments