From 41a0409e9ec724cb12d39235d5115abe49cded47 Mon Sep 17 00:00:00 2001 From: hstyi Date: Tue, 8 Apr 2025 14:43:58 +0800 Subject: [PATCH] fix: return to parent folder failure (#468) --- src/main/kotlin/app/termora/sftp/FileSystemViewPanel.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/app/termora/sftp/FileSystemViewPanel.kt b/src/main/kotlin/app/termora/sftp/FileSystemViewPanel.kt index b877c0b..9dea672 100644 --- a/src/main/kotlin/app/termora/sftp/FileSystemViewPanel.kt +++ b/src/main/kotlin/app/termora/sftp/FileSystemViewPanel.kt @@ -192,8 +192,7 @@ class FileSystemViewPanel( button.addActionListener(object : AbstractAction() { override fun actionPerformed(e: ActionEvent) { if (model.rowCount < 1) return - if (model.hasParent) return - enterTableSelectionFolder(0) + if (model.hasParent) enterTableSelectionFolder(0) } })