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

Method syncLayout

internal/ui/components/tasks_list.go:467–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

465}
466
467func (tl *TasksList) syncLayout() {
468 tl.Flex.Clear()
469 tl.Flex.AddItem(tl.historyTable, 0, historyPanelRatio, true)
470
471 if tl.showActive {
472 tl.Flex.AddItem(tl.activeTable, 0, queuePanelRatio, false)
473 }
474
475 if tl.app != nil && !tl.showActive && tl.app.GetFocus() == tl.activeTable {
476 tl.app.SetFocus(tl.historyTable)
477 }
478}
479
480func (tl *TasksList) focusOtherPane() {
481 if tl.app == nil || !tl.showActive {

Callers 2

NewTasksListFunction · 0.95

Calls 2

ClearMethod · 0.65
SetFocusMethod · 0.65

Tested by

no test coverage detected