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

Method SetApp

internal/ui/components/vm_details.go:45–50  ·  view source on GitHub ↗

SetApp sets the parent app reference for focus management.

(app *App)

Source from the content-addressed store, hash-verified

43
44// SetApp sets the parent app reference for focus management.
45func (vd *VMDetails) SetApp(app *App) {
46 vd.app = app
47
48 // Set up input capture for arrow keys and VI-like navigation (hjkl)
49 vd.SetInputCapture(createNavigationInputCapture(vd.app, vd.app.vmList, nil))
50}
51
52// Update fills the VM details table for the given VM.
53func (vd *VMDetails) Update(vm *api.VM) {

Calls 1