diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-04 23:51:59 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 4fe512ff3a299102c2bd78bc83b8644582127aae (patch) | |
tree | 5a34eacc1c137a8c98624ba29b757c0a717cf694 /pkg/gui/status_panel.go | |
parent | 4197921465a6cb67d5fdd5b63de653493a5ebd41 (diff) |
test
type safe view access
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 94190279c..20a7a05b5 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -43,7 +43,7 @@ func (gui *Gui) refreshStatus() { status += fmt.Sprintf("%s ā %s ", repoName, name) gui.g.Update(func(*gocui.Gui) error { - gui.setViewContent(gui.getStatusView(), status) + gui.setViewContent(gui.Views.Status, status) return nil }) } @@ -77,7 +77,7 @@ func (gui *Gui) handleStatusClick() error { return err } - cx, _ := gui.getStatusView().Cursor() + cx, _ := gui.Views.Status.Cursor() upstreamStatus := fmt.Sprintf("ā%sā%s", currentBranch.Pushables, currentBranch.Pullables) repoName := utils.GetCurrentRepoName() switch gui.GitCommand.WorkingTreeState() { @@ -121,7 +121,7 @@ func (gui *Gui) handleStatusSelect() error { return gui.refreshMainViews(refreshMainOpts{ main: &viewUpdateOpts{ title: "", - task: gui.createRenderStringTask(dashboardString), + task: NewRenderStringTask(dashboardString), }, }) } |