Fix recursive expansion if folder was already expanded

java-i2p-warning
Zlatin Balevsky 2022-08-29 20:55:05 +01:00
parent 16b6c8e419
commit ab983dbf57
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 1 additions and 8 deletions

View File

@ -230,7 +230,6 @@ class BrowseController {
void requestFetch(TreePath treePath, boolean recursive) {
List<String> path = model.resultsTreeModel.getPathFromRoot(treePath)
if (path != null)
model.session.fetch(path, recursive)
model.session.fetch(path, recursive)
}
}

View File

@ -81,12 +81,6 @@ class ResultTreeModel extends DefaultTreeModel {
List<String> getPathFromRoot(TreePath treePath) {
MutableResultNode last = (MutableResultNode)treePath.getLastPathComponent()
if (last.getChildCount() != 1)
return null
if (!(last.getChildAt(0) instanceof PlaceholderNode))
return null
Object [] objects = treePath.getPath()
List<String> rv = new ArrayList<>()