From f7e47540dc44dd4fe65973bfef12530921904ce4 Mon Sep 17 00:00:00 2001 From: Konloch Date: Mon, 26 Jul 2021 21:52:20 -0700 Subject: [PATCH] Fix Opening Selected Resource --- .../bytecodeviewer/gui/resourcelist/ResourceListPane.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java index 20aace85..b8821c12 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java @@ -403,21 +403,21 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File tree.expandPath(path); }); - /*this.tree.addMouseListener(new MouseAdapter() { + this.tree.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { openPath(tree.getPathForLocation(e.getX(), e.getY())); } - });*/ + }); - this.tree.addTreeSelectionListener(arg0 -> { + /*this.tree.addTreeSelectionListener(arg0 -> { if (cancel) { cancel = false; return; } openPath(arg0.getPath()); - }); + });*/ this.tree.addKeyListener(new KeyListener() {