From 277ef4a8355eae2df6c1dccc3ea817031a48311f Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Wed, 13 Dec 2023 10:06:27 +0100 Subject: [PATCH] Fix crash when New UI status is not yet initialized --- src/com/chylex/intellij/coloredicons/IconPatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/chylex/intellij/coloredicons/IconPatcher.java b/src/com/chylex/intellij/coloredicons/IconPatcher.java index 1ec4481..2c824d2 100644 --- a/src/com/chylex/intellij/coloredicons/IconPatcher.java +++ b/src/com/chylex/intellij/coloredicons/IconPatcher.java @@ -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); }