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

Function shouldRestoreVMSelection

internal/ui/components/selection.go:90–99  ·  view source on GitHub ↗
(hasVM bool, vmID int, vmNode string, current *api.VM)

Source from the content-addressed store, hash-verified

88}
89
90func shouldRestoreVMSelection(hasVM bool, vmID int, vmNode string, current *api.VM) bool {
91 if !hasVM {
92 return false
93 }
94 if current == nil {
95 return true
96 }
97
98 return current.ID == vmID && current.Node == vmNode
99}
100
101func shouldRestoreNodeSelection(hasNode bool, nodeName string, current *api.Node) bool {
102 if !hasNode {

Callers 2

restoreSelectionMethod · 0.85

Calls

no outgoing calls

Tested by 1