1
0
mirror of https://github.com/chylex/IntelliJ-Colored-Icons.git synced 2025-04-11 14:15:48 +02:00

Fix crash when New UI status is not yet initialized

This commit is contained in:
chylex 2023-12-13 10:06:27 +01:00
parent 7f2b2e419d
commit 277ef4a835
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -2,7 +2,7 @@ package com.chylex.intellij.coloredicons;
import com.chylex.intellij.coloredicons.sets.OldUI;
import com.intellij.openapi.util.IconLoader;
import com.intellij.openapi.util.IconPathPatcher;
import com.intellij.ui.NewUiValue;
import com.intellij.ui.NewUI;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collections;
@ -13,7 +13,7 @@ public class IconPatcher extends IconPathPatcher {
private final Map<String, String> iconPaths;
public IconPatcher() {
iconPaths = NewUiValue.isEnabled() ? Collections.emptyMap() : OldUI.getIconPaths();
iconPaths = NewUI.isEnabled() ? Collections.emptyMap() : OldUI.getIconPaths();
IconLoader.installPathPatcher(this);
}