Skip to content

Commit

Permalink
fix folder icons not being present in obfuscated classes docker - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ix0rai committed Oct 19, 2024
1 parent ba80b7e commit 4abda0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions enigma-swing/src/main/java/org/quiltmc/enigma/gui/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import javax.swing.JScrollBar;
import javax.swing.JSplitPane;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.WindowConstants;
import java.awt.BorderLayout;
import java.awt.Container;
Expand Down Expand Up @@ -162,6 +163,9 @@ private void setupDockers() {
}

private void setupUi() {
// fix folder icons being automatically hidden: https://github.com/JFormDesigner/FlatLaf/pull/609
UIManager.put("Tree.showDefaultIcons", true);

this.setupDockers();

this.jarFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import javax.swing.Icon;
import javax.swing.JLabel;
import javax.swing.JTree;
import javax.swing.UIManager;
import javax.swing.tree.DefaultTreeCellRenderer;
import java.awt.Component;
import java.util.function.Function;
Expand All @@ -27,9 +26,6 @@ public class ClassTreeCellRenderer extends DefaultTreeCellRenderer {
public ClassTreeCellRenderer(Gui gui, ClassSelector selector) {
this.controller = gui.getController();
this.selector = selector;

// fix folder icons being automatically hidden: https://github.com/JFormDesigner/FlatLaf/pull/609
UIManager.put("Tree.showDefaultIcons", true);
}

@Override
Expand Down

0 comments on commit 4abda0f

Please sign in to comment.