()
| 1076 | } |
| 1077 | |
| 1078 | func (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 | |
| 1107 | func (gui *Gui) showBreakingChangesMessage() { |
| 1108 | _, err := types.ParseVersionNumber(gui.Config.GetVersion()) |
no test coverage detected