MCPcopy
hub / github.com/jesseduffield/lazygit / showIntroPopupMessage

Method showIntroPopupMessage

pkg/gui/gui.go:1078–1105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1076}
1077
1078func (gui *Gui) showIntroPopupMessage() {
1079 gui.waitForIntro.Add(1)
1080
1081 gui.c.OnUIThread(func() error {
1082 onConfirm := func() error {
1083 gui.c.GetAppState().StartupPopupVersion = StartupPopupVersion
1084 err := gui.c.SaveAppState()
1085 gui.waitForIntro.Done()
1086 return err
1087 }
1088
1089 introMessage := utils.ResolvePlaceholderString(
1090 gui.c.Tr.IntroPopupMessage,
1091 map[string]string{
1092 "confirmationKey": gui.c.UserConfig().Keybinding.Universal.Confirm.String(),
1093 },
1094 )
1095
1096 gui.c.Confirm(types.ConfirmOpts{
1097 Title: "",
1098 Prompt: introMessage,
1099 HandleConfirm: onConfirm,
1100 HandleClose: onConfirm,
1101 })
1102
1103 return nil
1104 })
1105}
1106
1107func (gui *Gui) showBreakingChangesMessage() {
1108 _, err := types.ParseVersionNumber(gui.Config.GetVersion())

Callers 1

Calls 9

ResolvePlaceholderStringFunction · 0.92
UserConfigMethod · 0.80
OnUIThreadMethod · 0.65
GetAppStateMethod · 0.65
SaveAppStateMethod · 0.65
DoneMethod · 0.65
ConfirmMethod · 0.65
AddMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected