IDEA-134631 (correct modality for plugin update notification)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 22 Dec 2014 20:01:05 +0000 (21:01 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 22 Dec 2014 20:01:05 +0000 (21:01 +0100)
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/PluginUpdateInfoDialog.java

index eec9d3ca854d193321006cad7cbf432ae6c9e616..ab2fd59362d0de271ce1468c3f9ab90ba7435374 100644 (file)
@@ -18,6 +18,7 @@ package com.intellij.openapi.updateSettings.impl;
 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.openapi.progress.ProgressIndicator;
 import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.progress.Task;
@@ -78,7 +79,12 @@ class PluginUpdateInfoDialog extends AbstractUpdateDialog {
         UpdateChecker.saveDisabledToUpdatePlugins();
         boolean updated = UpdateChecker.installPluginUpdates(myUploadedPlugins, indicator);
         if (updated && !myPlatformUpdate) {
-          PluginManagerMain.notifyPluginsUpdated(null);
+          ApplicationManager.getApplication().invokeLater(new Runnable() {
+            @Override
+            public void run() {
+              PluginManagerMain.notifyPluginsUpdated(null);
+            }
+          }, ModalityState.NON_MODAL);
         }
       }
     });