mirror of
https://github.com/TermoraDev/termora.git
synced 2026-03-31 21:32:20 +08:00
fix: geo class cast
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user