Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 467a77f

Browse files
committed
fix search
1 parent 13ecc7d commit 467a77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cn/enaium/joe/dialog/search/SearchLdcDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public SearchLdcDialog() {
4444
JavaOctetEditor.getInstance().task
4545
.submit(new SearchLdcTask(JavaOctetEditor.getInstance().getJar(), text.getText()))
4646
.thenAccept(it -> {
47-
resultList.removeAll();
47+
((DefaultListModel<ResultNode>) resultList.getModel()).clear();
4848
for (ResultNode resultNode : it) {
4949
((DefaultListModel<ResultNode>) resultList.getModel()).addElement(resultNode);
5050
}

0 commit comments

Comments
 (0)