fix: SFTP transport file

This commit is contained in:
hstyi
2025-03-29 14:40:22 +08:00
committed by hstyi
parent 1516d6d81e
commit ccb2c6daa0

View File

@@ -137,7 +137,7 @@ class FileSystemViewTable(
table.requestFocusInWindow()
}
showContextMenu(rows, e)
showContextMenu(rows.sortedArray(), e)
} else if (SwingUtilities.isLeftMouseButton(e) && e.clickCount % 2 == 0) {
val row = table.selectedRow
if (row <= 0 || row >= table.rowCount) return
@@ -852,9 +852,8 @@ class FileSystemViewTable(
}
if (attr.isFile) {
if (!adder.add(createTransport(attr.path, false, 0).apply { scanned() })) {
return
}
adder.add(createTransport(attr.path, false, 0).apply { scanned() })
return
}
val queue = ArrayDeque<Transport>()