MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / shouldRestoreNodeSelection

Function shouldRestoreNodeSelection

internal/ui/components/selection.go:101–110  ·  view source on GitHub ↗
(hasNode bool, nodeName string, current *api.Node)

Source from the content-addressed store, hash-verified

99}
100
101func shouldRestoreNodeSelection(hasNode bool, nodeName string, current *api.Node) bool {
102 if !hasNode {
103 return false
104 }
105 if current == nil {
106 return true
107 }
108
109 return current.Name == nodeName
110}

Callers 2

restoreSelectionMethod · 0.85

Calls

no outgoing calls

Tested by 1