From ae7185b80cb54f8eadeebda6a4045311e75803a8 Mon Sep 17 00:00:00 2001 From: weisj Date: Sat, 24 Oct 2020 18:40:51 +0200 Subject: [PATCH] Remove static access on instance. --- .../github/weisj/darklaf/settings/ThemeSettingsMenuItem.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsMenuItem.java b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsMenuItem.java index 287fb5b6..ee985e9a 100644 --- a/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsMenuItem.java +++ b/core/src/main/java/com/github/weisj/darklaf/settings/ThemeSettingsMenuItem.java @@ -21,15 +21,13 @@ */ package com.github.weisj.darklaf.settings; -import java.awt.*; - import javax.swing.*; public class ThemeSettingsMenuItem extends JMenuItem { public ThemeSettingsMenuItem(final String text) { super(text); - setIcon(ThemeSettings.getInstance().getIcon()); + setIcon(ThemeSettings.getIcon()); addActionListener(e -> ThemeSettings.showSettingsDialog(this)); } }