fix: geo class cast

This commit is contained in:
hstyi
2025-06-28 16:13:14 +08:00
committed by hstyi
parent 1135ecc5a3
commit ef2c57bb29
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class GeoSimpleTreeCellRendererExtension private constructor() : SimpleTreeCellR
hasFocus: Boolean
): List<SimpleTreeCellAnnotation> {
val node = value as HostTreeNode? ?: return emptyList()
val node = value as? HostTreeNode ?: return emptyList()
if (node.isFolder) return emptyList()
val protocol = node.data.protocol
if ((protocol == "SSH" || protocol == "RDP").not()) return emptyList()