Browse Source

Installation: Don't update uis when changing decorations if LaF isn't installed.

jxlayer
weisj 3 years ago
parent
commit
7cf3520be7
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 2
      core/src/main/java/com/github/weisj/darklaf/LafManager.java

2
core/src/main/java/com/github/weisj/darklaf/LafManager.java

@ -116,7 +116,7 @@ public final class LafManager {
public static void setDecorationsEnabled(final boolean enabled) {
boolean isEnabled = isDecorationsEnabled();
DecorationsHandler.getSharedInstance().setDecorationsEnabled(enabled);
if (isEnabled != enabled) {
if (isEnabled != enabled && LafManager.isInstalled()) {
updateLaf();
}
}

Loading…
Cancel
Save