IDEA-135626 (backgroundable plugin update progress) appcode/140.1972 clion/140.1971
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 27 Jan 2015 11:42:07 +0000 (14:42 +0300)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 27 Jan 2015 11:43:31 +0000 (14:43 +0300)
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/PluginUpdateInfoDialog.java

index 43d64d5feb35690ee3ad4a40c0984ce2b1fef473..7de6147a8f9954bbf68faedbcc3508f28eec0118 100644 (file)
@@ -19,6 +19,7 @@ import com.intellij.ide.IdeBundle;
 import com.intellij.ide.plugins.PluginManagerMain;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.application.ModalityState;
 import com.intellij.ide.plugins.PluginManagerMain;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.application.ModalityState;
+import com.intellij.openapi.progress.PerformInBackgroundOption;
 import com.intellij.openapi.progress.ProgressIndicator;
 import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.progress.Task;
 import com.intellij.openapi.progress.ProgressIndicator;
 import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.progress.Task;
@@ -76,7 +77,7 @@ class PluginUpdateInfoDialog extends AbstractUpdateDialog {
   protected void doOKAction() {
     super.doOKAction();
 
   protected void doOKAction() {
     super.doOKAction();
 
-    ProgressManager.getInstance().run(new Task.Modal(null, IdeBundle.message("progress.downloading.plugins"), true) {
+    ProgressManager.getInstance().run(new Task.Backgroundable(null, IdeBundle.message("progress.downloading.plugins"), true, PerformInBackgroundOption.DEAF) {
       @Override
       public void run(@NotNull ProgressIndicator indicator) {
         UpdateChecker.saveDisabledToUpdatePlugins();
       @Override
       public void run(@NotNull ProgressIndicator indicator) {
         UpdateChecker.saveDisabledToUpdatePlugins();