()
| 465 | } |
| 466 | |
| 467 | func (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 | |
| 480 | func (tl *TasksList) focusOtherPane() { |
| 481 | if tl.app == nil || !tl.showActive { |
no test coverage detected