diff --git a/pkg/gui/updates.go b/pkg/gui/updates.go index edc208625..9bfa65720 100644 --- a/pkg/gui/updates.go +++ b/pkg/gui/updates.go @@ -68,7 +68,7 @@ func (gui *Gui) onUpdateFinish(statusId int, err error) error { ) return gui.c.ErrorMsg(errMessage) } - return nil + return gui.c.Alert(gui.Tr.UpdateCompletedTitle, gui.Tr.UpdateCompleted) }) return nil diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index f7f02600e..585da5e30 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -132,6 +132,8 @@ type TranslationSet struct { UpdateAvailableTitle string UpdateAvailable string UpdateInProgressWaitingStatus string + UpdateCompletedTitle string + UpdateCompleted string FailedToRetrieveLatestVersionErr string OnLatestVersionErr string MajorVersionErr string @@ -729,6 +731,8 @@ func EnglishTranslationSet() TranslationSet { UpdateAvailableTitle: "Update available!", UpdateAvailable: "Download and install version {{.newVersion}}?", UpdateInProgressWaitingStatus: "updating", + UpdateCompletedTitle: "Update completed!", + UpdateCompleted: "Update has been installed successfully. Restart lazygit for it to take effect.", FailedToRetrieveLatestVersionErr: "Failed to retrieve version information", OnLatestVersionErr: "You already have the latest version", MajorVersionErr: "New version ({{.newVersion}}) has non-backwards compatible changes compared to the current version ({{.currentVersion}})",