@@ -23,6 +23,9 @@ final class AppState: ObservableObject {
2323 private static let appearanceKey = " appearance "
2424 private static let showToolbarButtonTextKey = " showToolbarButtonText "
2525 private static let showGitFlowKey = " showGitFlow "
26+ private static let showWorkspaceReflogKey = " showWorkspaceReflog "
27+ private static let showWorkspacePullRequestsKey = " showWorkspacePullRequests "
28+ private static let showWorkspaceGitLFSKey = " showWorkspaceGitLFS "
2629 private static let showSubmodulesKey = " showSubmodules "
2730 private static let showSubtreesKey = " showSubtrees "
2831 private static let showHeaderBranchButtonKey = " showHeaderBranchButton "
@@ -72,6 +75,30 @@ final class AppState: ObservableObject {
7275 }
7376 }
7477 }
78+ @Published var showWorkspaceReflog : Bool {
79+ didSet {
80+ userDefaults. set ( showWorkspaceReflog, forKey: Self . showWorkspaceReflogKey)
81+ if !isApplyingSnapshot {
82+ currentSettingsSnapshot = snapshot
83+ }
84+ }
85+ }
86+ @Published var showWorkspacePullRequests : Bool {
87+ didSet {
88+ userDefaults. set ( showWorkspacePullRequests, forKey: Self . showWorkspacePullRequestsKey)
89+ if !isApplyingSnapshot {
90+ currentSettingsSnapshot = snapshot
91+ }
92+ }
93+ }
94+ @Published var showWorkspaceGitLFS : Bool {
95+ didSet {
96+ userDefaults. set ( showWorkspaceGitLFS, forKey: Self . showWorkspaceGitLFSKey)
97+ if !isApplyingSnapshot {
98+ currentSettingsSnapshot = snapshot
99+ }
100+ }
101+ }
75102 @Published var showSubmodules : Bool {
76103 didSet {
77104 userDefaults. set ( showSubmodules, forKey: Self . showSubmodulesKey)
@@ -232,6 +259,9 @@ final class AppState: ObservableObject {
232259 . flatMap ( AppAppearance . init ( rawValue: ) ) ?? . system
233260 let showToolbarButtonText = userDefaults. object ( forKey: Self . showToolbarButtonTextKey) as? Bool ?? true
234261 let showGitFlow = userDefaults. object ( forKey: Self . showGitFlowKey) as? Bool ?? true
262+ let showWorkspaceReflog = userDefaults. object ( forKey: Self . showWorkspaceReflogKey) as? Bool ?? true
263+ let showWorkspacePullRequests = userDefaults. object ( forKey: Self . showWorkspacePullRequestsKey) as? Bool ?? true
264+ let showWorkspaceGitLFS = userDefaults. object ( forKey: Self . showWorkspaceGitLFSKey) as? Bool ?? true
235265 let showSubmodules = userDefaults. object ( forKey: Self . showSubmodulesKey) as? Bool ?? false
236266 let showSubtrees = userDefaults. object ( forKey: Self . showSubtreesKey) as? Bool ?? false
237267 let showHeaderBranchButton = userDefaults. object ( forKey: Self . showHeaderBranchButtonKey) as? Bool ?? true
@@ -261,6 +291,9 @@ final class AppState: ObservableObject {
261291 appearance: appearance,
262292 showToolbarButtonText: showToolbarButtonText,
263293 showGitFlow: showGitFlow,
294+ showWorkspaceReflog: showWorkspaceReflog,
295+ showWorkspacePullRequests: showWorkspacePullRequests,
296+ showWorkspaceGitLFS: showWorkspaceGitLFS,
264297 showSubmodules: showSubmodules,
265298 showSubtrees: showSubtrees,
266299 showHeaderBranchButton: showHeaderBranchButton,
@@ -281,6 +314,9 @@ final class AppState: ObservableObject {
281314 self . appearance = appearance
282315 self . showToolbarButtonText = showToolbarButtonText
283316 self . showGitFlow = showGitFlow
317+ self . showWorkspaceReflog = showWorkspaceReflog
318+ self . showWorkspacePullRequests = showWorkspacePullRequests
319+ self . showWorkspaceGitLFS = showWorkspaceGitLFS
284320 self . showSubmodules = showSubmodules
285321 self . showSubtrees = showSubtrees
286322 self . showHeaderBranchButton = showHeaderBranchButton
@@ -308,6 +344,9 @@ final class AppState: ObservableObject {
308344 appearance: appearance,
309345 showToolbarButtonText: showToolbarButtonText,
310346 showGitFlow: showGitFlow,
347+ showWorkspaceReflog: showWorkspaceReflog,
348+ showWorkspacePullRequests: showWorkspacePullRequests,
349+ showWorkspaceGitLFS: showWorkspaceGitLFS,
311350 showSubmodules: showSubmodules,
312351 showSubtrees: showSubtrees,
313352 showHeaderBranchButton: showHeaderBranchButton,
@@ -333,6 +372,9 @@ final class AppState: ObservableObject {
333372 appearance = snapshot. appearance
334373 showToolbarButtonText = snapshot. showToolbarButtonText
335374 showGitFlow = snapshot. showGitFlow
375+ showWorkspaceReflog = snapshot. showWorkspaceReflog
376+ showWorkspacePullRequests = snapshot. showWorkspacePullRequests
377+ showWorkspaceGitLFS = snapshot. showWorkspaceGitLFS
336378 showSubmodules = snapshot. showSubmodules
337379 showSubtrees = snapshot. showSubtrees
338380 showHeaderBranchButton = snapshot. showHeaderBranchButton
0 commit comments