From 2f241d3f065dabc33cf31a22b9f6ffe713b62b6d Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Thu, 3 Oct 2013 13:00:06 +0200 Subject: [PATCH] Platform: patch updater fixed on Mac - UI hung due to out-ot-AWT LaF installation --- updater/src/com/intellij/updater/Runner.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/updater/src/com/intellij/updater/Runner.java b/updater/src/com/intellij/updater/Runner.java index e6e02a81fde7..02c45507b12c 100644 --- a/updater/src/com/intellij/updater/Runner.java +++ b/updater/src/com/intellij/updater/Runner.java @@ -146,11 +146,16 @@ public class Runner { in.close(); } - try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } - catch (Exception ignore) { - } + SwingUtilities.invokeAndWait(new Runnable() { + @Override + public void run() { + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } + catch (Exception ignore) { + } + } + }); new SwingUpdaterUI(props.getProperty(OLD_BUILD_DESCRIPTION), props.getProperty(NEW_BUILD_DESCRIPTION),