mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
chore: improve connect-with
This commit is contained in:
@@ -332,8 +332,8 @@ class NewHostTree : SimpleTree(), Disposable {
|
|||||||
importMenu.isEnabled = lastNode.isFolder
|
importMenu.isEnabled = lastNode.isFolder
|
||||||
|
|
||||||
// 如果选中了 SSH 服务器,那么才启用
|
// 如果选中了 SSH 服务器,那么才启用
|
||||||
openWithSFTP.isEnabled = fullNodes.map { it.host }.any { it.protocol == SSHProtocolProvider.PROTOCOL }
|
openWithSFTP.isEnabled = fullNodes.map { it.host }.any { TransferProtocolProvider.valueOf(it.protocol) != null }
|
||||||
openWithSFTPCommand.isEnabled = openWithSFTP.isEnabled
|
openWithSFTPCommand.isEnabled = fullNodes.map { it.host }.any { it.protocol == SSHProtocolProvider.PROTOCOL }
|
||||||
openWith.isEnabled = openWith.menuComponents.any { it is JMenuItem && it.isEnabled }
|
openWith.isEnabled = openWith.menuComponents.any { it is JMenuItem && it.isEnabled }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user