mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: SFTP transport file
This commit is contained in:
@@ -137,7 +137,7 @@ class FileSystemViewTable(
|
|||||||
table.requestFocusInWindow()
|
table.requestFocusInWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
showContextMenu(rows, e)
|
showContextMenu(rows.sortedArray(), e)
|
||||||
} else if (SwingUtilities.isLeftMouseButton(e) && e.clickCount % 2 == 0) {
|
} else if (SwingUtilities.isLeftMouseButton(e) && e.clickCount % 2 == 0) {
|
||||||
val row = table.selectedRow
|
val row = table.selectedRow
|
||||||
if (row <= 0 || row >= table.rowCount) return
|
if (row <= 0 || row >= table.rowCount) return
|
||||||
@@ -852,9 +852,8 @@ class FileSystemViewTable(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (attr.isFile) {
|
if (attr.isFile) {
|
||||||
if (!adder.add(createTransport(attr.path, false, 0).apply { scanned() })) {
|
adder.add(createTransport(attr.path, false, 0).apply { scanned() })
|
||||||
return
|
return
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val queue = ArrayDeque<Transport>()
|
val queue = ArrayDeque<Transport>()
|
||||||
|
|||||||
Reference in New Issue
Block a user