IDEA-250338 Plugin theme is applied when "Sync with OS" theme is set

GitOrigin-RevId: 8aee8c1e60dc2024ae75f3ec58d35ec986c411a5
This commit is contained in:
Kirill Kirichenko
2020-09-14 13:13:15 +00:00
committed by intellij-monorepo-bot
parent d18a84ddab
commit 6ca4a09f5d
@@ -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();