diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-16 14:46:53 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 1dd7307fde033dae5fececac15810a99e26c3d91 (patch) | |
tree | 4e851c9e3229a6fe3b4191f6311d05d7a9142960 /pkg/gui/information_panel.go | |
parent | a90b6efded49abcfa2516db794d7875b0396f558 (diff) |
start moving commit panel handlers into controller
more
and more
move rebase commit refreshing into existing abstraction
and more
and more
WIP
and more
handling clicks
properly fix merge conflicts
update cheatsheet
lots more preparation to start moving things into controllers
WIP
better typing
expand on remotes controller
moving more code into controllers
Diffstat (limited to 'pkg/gui/information_panel.go')
-rw-r--r-- | pkg/gui/information_panel.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/gui/information_panel.go b/pkg/gui/information_panel.go index d09f495c5..07e64fb42 100644 --- a/pkg/gui/information_panel.go +++ b/pkg/gui/information_panel.go @@ -15,8 +15,8 @@ func (gui *Gui) informationStr() string { } if gui.g.Mouse { - donate := style.FgMagenta.SetUnderline().Sprint(gui.Tr.Donate) - askQuestion := style.FgYellow.SetUnderline().Sprint(gui.Tr.AskQuestion) + donate := style.FgMagenta.SetUnderline().Sprint(gui.c.Tr.Donate) + askQuestion := style.FgYellow.SetUnderline().Sprint(gui.c.Tr.AskQuestion) return fmt.Sprintf("%s %s %s", donate, askQuestion, gui.Config.GetVersion()) } else { return gui.Config.GetVersion() @@ -35,7 +35,7 @@ func (gui *Gui) handleInfoClick() error { for _, mode := range gui.modeStatuses() { if mode.isActive() { - if width-cx > len(gui.Tr.ResetInParentheses) { + if width-cx > len(gui.c.Tr.ResetInParentheses) { return nil } return mode.reset() @@ -43,9 +43,9 @@ func (gui *Gui) handleInfoClick() error { } // if we're not in an active mode we show the donate button - if cx <= len(gui.Tr.Donate) { + if cx <= len(gui.c.Tr.Donate) { return gui.OSCommand.OpenLink(constants.Links.Donate) - } else if cx <= len(gui.Tr.Donate)+1+len(gui.Tr.AskQuestion) { + } else if cx <= len(gui.c.Tr.Donate)+1+len(gui.c.Tr.AskQuestion) { return gui.OSCommand.OpenLink(constants.Links.Discussions) } return nil |