Browse Source

Ensure theme gets installed if applied in settings.

pull/214/head
weisj 4 years ago
parent
commit
e2aabdd378
  1. 2
      core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java

2
core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java

@ -463,7 +463,7 @@ public class ThemeSettings implements ThemePreferenceListener {
protected void applyTheme(final Theme theme) {
if (theme == null) return;
if (LafManager.getTheme().appearsEqualTo(theme)) return;
if (LafManager.isInstalled() && LafManager.getTheme().appearsEqualTo(theme)) return;
SwingUtilities.invokeLater(() -> {
LafManager.installTheme(theme);
refresh();

Loading…
Cancel
Save