summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-03-10 20:59:11 +0100
committerStefan Haller <stefan@haller-berlin.de>2024-03-12 13:27:14 +0100
commit2f4437591e9a6e2d7ce46a1a9607762bf2fd002a (patch)
treed24293aceb6c8b3fad58805ac18bb838620a173d /pkg/config
parentd12ceeb1ecac2bf9783f0febb48aca335805524a (diff)
Show popup message with breaking changes on startup
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/app_config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go
index 67852dcd1..7f5757447 100644
--- a/pkg/config/app_config.go
+++ b/pkg/config/app_config.go
@@ -343,6 +343,7 @@ type AppState struct {
LastUpdateCheck int64
RecentRepos []string
StartupPopupVersion int
+ LastVersion string // this is the last version the user was using, for the purpose of showing release notes
// these are for custom commands typed in directly, not for custom commands in the lazygit config
CustomCommandsHistory []string
@@ -367,6 +368,7 @@ func getDefaultAppState() *AppState {
LastUpdateCheck: 0,
RecentRepos: []string{},
StartupPopupVersion: 0,
+ LastVersion: "",
DiffContextSize: 3,
LocalBranchSortOrder: "recency",
RemoteBranchSortOrder: "alphabetical",