From e2aabdd378d7097260fbf0fb2563d2bc31cd0331 Mon Sep 17 00:00:00 2001 From: weisj Date: Sat, 3 Oct 2020 16:09:27 +0200 Subject: [PATCH] Ensure theme gets installed if applied in settings. --- .../java/com/github/weisj/darklaf/settings/ThemeSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java index bc0e4241..47a0e267 100644 --- a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettings.java +++ b/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();