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

Method jumpTreeBottom

internal/ui/components/storage_browser.go:593–609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

591}
592
593func (sb *StorageBrowser) jumpTreeBottom() {
594 root := sb.tree.GetRoot()
595 if root == nil {
596 return
597 }
598 children := root.GetChildren()
599 if len(children) == 0 {
600 return
601 }
602 last := children[len(children)-1]
603 grandChildren := last.GetChildren()
604 if len(grandChildren) > 0 {
605 last = grandChildren[len(grandChildren)-1]
606 }
607 sb.tree.SetCurrentNode(last)
608 sb.handleTreeSelection(last)
609}
610
611func cloneAndSortStorageNodes(nodes []*api.Node) []*api.Node {
612 cloned := make([]*api.Node, 0, len(nodes))

Callers 1

SetAppMethod · 0.95

Calls 1

handleTreeSelectionMethod · 0.95

Tested by

no test coverage detected