(g *gocui.Gui)
| 604 | } |
| 605 | |
| 606 | func (mui *MasterUI) updateDisplay(g *gocui.Gui) { |
| 607 | if mui.updateDisplayInProgress { |
| 608 | return |
| 609 | } |
| 610 | mui.updateDisplayInProgress = true |
| 611 | g.Update(func(g *gocui.Gui) error { |
| 612 | |
| 613 | if !mui.displayPaused { |
| 614 | // This takes a snapshot of the live data |
| 615 | mui.snapshotLiveData() |
| 616 | mui.commonData.PostProcessData() |
| 617 | } |
| 618 | |
| 619 | mui.updateHeaderDisplay(g) |
| 620 | mui.currentDataView.UpdateDisplay(g) |
| 621 | mui.updateDisplayInProgress = false |
| 622 | return nil |
| 623 | }) |
| 624 | } |
| 625 | |
| 626 | func (mui *MasterUI) refreshMetadata(g *gocui.Gui, v *gocui.View) error { |
| 627 | go mui.router.GetProcessor().FlushCache() |
no test coverage detected