diff --git a/platform/platform-impl/src/com/intellij/ide/ui/laf/LafManagerImpl.java b/platform/platform-impl/src/com/intellij/ide/ui/laf/LafManagerImpl.java index 5d07c531260f..538da62da9ff 100644 --- a/platform/platform-impl/src/com/intellij/ide/ui/laf/LafManagerImpl.java +++ b/platform/platform-impl/src/com/intellij/ide/ui/laf/LafManagerImpl.java @@ -1253,7 +1253,7 @@ public final class LafManagerImpl extends LafManager implements PersistentStateC updateLafComboboxModel(); // When updating a theme plugin that doesn't provide the current theme, don't select any of its themes as current - if (!myUpdatingPlugin || newTheme.getTheme().getId().equals(myThemeIdBeforePluginUpdate)) { + if (!autodetect && (!myUpdatingPlugin || newTheme.getTheme().getId().equals(myThemeIdBeforePluginUpdate))) { setLookAndFeelImpl(newTheme, false, false); JBColor.setDark(newTheme.getTheme().isDark()); updateUI();