Skip to content

Commit

Permalink
fixup! Add WithWaitingStatusSync
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Dec 9, 2023
1 parent 035e247 commit e58d797
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/gui/controllers/helpers/app_status_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,12 @@ func (self *AppStatusHelper) renderAppStatusSync(stop chan struct{}) {
case <-ticker.C:
appStatus := self.statusMgr().GetStatusString()
self.c.SetViewContent(self.c.Views().AppStatus, appStatus)
viewsToRedraw := []*gocui.View{
// Redraw all views of the bottom line:
bottomLineViews := []*gocui.View{
self.c.Views().AppStatus, self.c.Views().Options, self.c.Views().Information,
self.c.Views().StatusSpacer1, self.c.Views().StatusSpacer2, self.c.Views().StatusSpacer3, self.c.Views().StatusSpacer4,
self.c.Views().StatusSpacer1, self.c.Views().StatusSpacer2,
}
_ = self.c.GocuiGui().ForceRedrawViews(viewsToRedraw...)
_ = self.c.GocuiGui().ForceRedrawViews(bottomLineViews...)
case <-stop:
break outer
}
Expand Down

0 comments on commit e58d797

Please sign in to comment.