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:
parent
7f2b2e419d
commit
277ef4a835
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user