From 23206486b8b2ec56918a70e76e2cc322a772c0ac Mon Sep 17 00:00:00 2001 From: LarsO Date: Fri, 9 Aug 2024 15:59:16 +0300 Subject: [PATCH 1/2] fix: lazily initialize PluginSettingsState in IconPack --- .../kotlin/com/github/catppuccin/jetbrains_icons/IconPack.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/catppuccin/jetbrains_icons/IconPack.kt b/src/main/kotlin/com/github/catppuccin/jetbrains_icons/IconPack.kt index 067cd91..b496d77 100644 --- a/src/main/kotlin/com/github/catppuccin/jetbrains_icons/IconPack.kt +++ b/src/main/kotlin/com/github/catppuccin/jetbrains_icons/IconPack.kt @@ -3,7 +3,9 @@ package com.github.catppuccin.jetbrains_icons import com.github.catppuccin.jetbrains_icons.settings.PluginSettingsState class IconPack { - val icons = Icons(PluginSettingsState.instance.variant) + val icons: Icons by lazy { + Icons(PluginSettingsState.instance.variant) + } companion object { val instance = IconPack() From 9af38a4ba85be9070283fff71d250235123837e4 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 9 Aug 2024 14:22:14 +0100 Subject: [PATCH 2/2] docs: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab710d..f5b48a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ ### Fixed +- Lazily initialize PluginSettingsState in IconPack ([#81](https://github.com/catppuccin/jetbrains-icons/pull/81)) - Display correct coloured Java icons in editor tabs ([#68](https://github.com/catppuccin/jetbrains-icons/pull/68)) ### Security