mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Fix global search
This commit is contained in:
1 parent
74e9491fcf
commit
46c0596768
1 file changed
+4
-6
@@ -37,12 +37,10 @@ public class GlobalSearchOpenBox extends JFrame {
|
||||
JList<Info> list = new JList(model);
|
||||
list.addListSelectionListener(new ListSelectionListener() {
|
||||
public void valueChanged(ListSelectionEvent e) {
|
||||
SingleThreadedExecutor.submit(() -> {
|
||||
Info val = list.getSelectedValue();
|
||||
if (val != null && !val.owner.equals(Main.currentNodeName)) {
|
||||
Main.selectFile(val.owner);
|
||||
}
|
||||
});
|
||||
Info val = list.getSelectedValue();
|
||||
if (!e.getValueIsAdjusting() && val != null && !val.owner.equals(Main.currentNodeName)) {
|
||||
SingleThreadedExecutor.submit(() -> Main.selectFile(val.owner + ".class"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user