Skip to content

Commit

Permalink
compute extra.tci.log.patchPath once
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlermitage committed Jan 23, 2024
1 parent cf984d9 commit 0338c4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Extra ToolWindow Colorful Icons Change Log

## 1.31.1 (2024/01/23)
* minor code rework.

## 1.31.0 (2024/01/09)
* add colors to [Key Promoter X](https://plugins.jetbrains.com/plugin/9792-key-promoter-x) icon.
* add colors to [Developer Tools](https://plugins.jetbrains.com/plugin/21904-developer-tools) icon and make it a bit more visible (bigger).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class ExtraToolWindowIconsPatcher extends IconPathPatcher {

private Map<String, IconItem> configuredIcons;

private final boolean IS_LOG_PATCH_PATH = "true".equals(System.getProperty("extra.tci.log.patchPath", "false"));

@SuppressWarnings("SpellCheckingInspection")
@NotNull
public static Map<String, IconItem> allIcons() {
Expand Down Expand Up @@ -200,7 +202,7 @@ public ExtraToolWindowIconsPatcher() {

@Override
public @Nullable String patchPath(@NotNull String path, @Nullable ClassLoader classLoader) {
if ("true".equals(System.getProperty("extra.tci.log.patchPath", "false"))) {
if (IS_LOG_PATCH_PATH) {
LOG.info("patchPath=" + path);
}

Expand Down

0 comments on commit 0338c4d

Please sign in to comment.