1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

allow hiding random tip

This commit is contained in:
Jesse Duffield
2021-04-12 21:41:12 +10:00
parent 76697280c9
commit 4fb2dba587
3 changed files with 11 additions and 6 deletions

View File

@ -46,12 +46,14 @@ func (gui *Gui) printCommandLogHeader() {
)
fmt.Fprintln(gui.Views.Extras, utils.ColoredString(introStr, color.FgCyan))
fmt.Fprintf(
gui.Views.Extras,
"%s: %s",
utils.ColoredString(gui.Tr.RandomTip, color.FgYellow),
utils.ColoredString(gui.getRandomTip(), color.FgGreen),
)
if gui.Config.GetUserConfig().Gui.ShowRandomTip {
fmt.Fprintf(
gui.Views.Extras,
"%s: %s",
utils.ColoredString(gui.Tr.RandomTip, color.FgYellow),
utils.ColoredString(gui.getRandomTip(), color.FgGreen),
)
}
}
func (gui *Gui) getRandomTip() string {