From 401b34954d021a68bbaf8364c8b4e485dad50cad Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Wed, 29 May 2019 14:30:24 +0200 Subject: [PATCH] don't create progress indicator for removing patches GitOrigin-RevId: 7019a8685d45f03ac8a8da3c87884ac58c0b0c86 --- .../updateSettings/impl/UpdateCheckerComponent.java | 9 +-------- .../src/messages/IdeBundle.properties | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java index ab2a74ea20d2..6f335b8bfdc2 100644 --- a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java +++ b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java @@ -14,8 +14,6 @@ import com.intellij.openapi.application.PathManager; import com.intellij.openapi.application.ex.ApplicationInfoEx; import com.intellij.openapi.components.BaseComponent; import com.intellij.openapi.diagnostic.Logger; -import com.intellij.openapi.progress.ProgressIndicator; -import com.intellij.openapi.progress.Task; import com.intellij.openapi.updateSettings.UpdateStrategyCustomization; import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser; import com.intellij.openapi.util.BuildNumber; @@ -102,12 +100,7 @@ public class UpdateCheckerComponent implements Disposable, BaseComponent { } private static void cleanupPatch() { - new Task.Backgroundable(null, IdeBundle.message("update.cleaning.patch.progress"), false) { - @Override - public void run(@NotNull ProgressIndicator indicator) { - UpdateInstaller.cleanupPatch(); - } - }.queue(); + ApplicationManager.getApplication().executeOnPooledThread(() -> UpdateInstaller.cleanupPatch()); } private void queueNextCheck(long interval) { diff --git a/platform/platform-resources-en/src/messages/IdeBundle.properties b/platform/platform-resources-en/src/messages/IdeBundle.properties index 97f5055a50e2..f6226ea4c924 100644 --- a/platform/platform-resources-en/src/messages/IdeBundle.properties +++ b/platform/platform-resources-en/src/messages/IdeBundle.properties @@ -1022,7 +1022,6 @@ update.edit.plugin.host.title=Edit Repository update.add.new.plugin.host.title=Add Repository update.downloading.patch.progress=Downloading Patch Files update.preparing.patch.progress=Preparing Patch Files -update.cleaning.patch.progress=Cleaning Patch Files update.downloading.plugins.progress=Downloading Plugin Updates update.downloading.patch.error=Failed to prepare an update:
{0}
Open download page. update.plugins.update.action=&Update