diff options
Diffstat (limited to 'lib/ui/ui.go')
-rw-r--r-- | lib/ui/ui.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/ui/ui.go b/lib/ui/ui.go index e29ab13c..42d584f8 100644 --- a/lib/ui/ui.go +++ b/lib/ui/ui.go @@ -79,16 +79,9 @@ func (state *UI) Close() { state.screen.Fini() } -func (state *UI) Render() bool { - more := false - +func (state *UI) Render() { wasInvalid := atomic.SwapInt32(&state.invalid, 0) if wasInvalid != 0 { - if state.popover != nil { - // if the previous frame had a popover, rerender the entire display - state.Content.Invalidate() - atomic.StoreInt32(&state.invalid, 0) - } // reset popover for the next Draw state.popover = nil state.Content.Draw(state.ctx) @@ -97,10 +90,7 @@ func (state *UI) Render() bool { state.popover.Draw(state.ctx) } state.screen.Show() - more = true } - - return more } func (state *UI) EnableMouse() { |