fix: SFTP path not working

This commit is contained in:
hstyi
2025-03-16 10:05:11 +08:00
committed by hstyi
parent e0ea42faee
commit 7756758738

View File

@@ -166,6 +166,13 @@ class FileSystemViewNav(
override fun actionPerformed(e: ActionEvent) { override fun actionPerformed(e: ActionEvent) {
val name = textField.text.trim() val name = textField.text.trim()
if (name.isBlank()) return if (name.isBlank()) return
try {
changeSelectedPath(fileSystem.getPath(name))
} catch (e: Exception) {
if (log.isErrorEnabled) {
log.error(e.message, e)
}
}
} }
}) })
} }