Skip to content

Commit

Permalink
Fix "Show score in info" setting default value inconsistency (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf authored Jan 12, 2024
1 parent 589a374 commit 2b2d4f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Mlem/Views/Shared/Comments/Comment Item.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct CommentItem: View {
@Dependency(\.hapticManager) var hapticManager

// appstorage
@AppStorage("shouldShowScoreInCommentBar") var shouldShowScoreInCommentBar: Bool = true
@AppStorage("shouldShowScoreInCommentBar") var shouldShowScoreInCommentBar: Bool = false
@AppStorage("showCommentDownvotesSeparately") var showCommentDownvotesSeparately: Bool = false
@AppStorage("shouldShowTimeInCommentBar") var shouldShowTimeInCommentBar: Bool = true
@AppStorage("shouldShowSavedInCommentBar") var shouldShowSavedInCommentBar: Bool = false
Expand Down
2 changes: 1 addition & 1 deletion Mlem/Views/Shared/Posts/Expanded Post.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct ExpandedPost: View {
@AppStorage("shouldShowCommunityServerInPost") var shouldShowCommunityServerInPost: Bool = false
@AppStorage("shouldShowUserAvatars") var shouldShowUserAvatars: Bool = false

@AppStorage("shouldShowScoreInPostBar") var shouldShowScoreInPostBar: Bool = true
@AppStorage("shouldShowScoreInPostBar") var shouldShowScoreInPostBar: Bool = false
@AppStorage("showDownvotesSeparately") var showPostDownvotesSeparately: Bool = false
@AppStorage("shouldShowTimeInPostBar") var shouldShowTimeInPostBar: Bool = true
@AppStorage("shouldShowSavedInPostBar") var shouldShowSavedInPostBar: Bool = false
Expand Down
2 changes: 1 addition & 1 deletion Mlem/Views/Shared/Posts/Feed Post.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct FeedPost: View {
@AppStorage("shouldShowCommunityServerInPost") var shouldShowCommunityServerInPost: Bool = true
@AppStorage("shouldShowUserServerInPost") var shouldShowUserServerInPost: Bool = true

@AppStorage("shouldShowScoreInPostBar") var shouldShowScoreInPostBar: Bool = true
@AppStorage("shouldShowScoreInPostBar") var shouldShowScoreInPostBar: Bool = false
@AppStorage("showDownvotesSeparately") var showPostDownvotesSeparately: Bool = false
@AppStorage("shouldShowTimeInPostBar") var shouldShowTimeInPostBar: Bool = true
@AppStorage("shouldShowSavedInPostBar") var shouldShowSavedInPostBar: Bool = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct PostSettingsView: View {
)
}

Section("Interactions and Info") {
Section {
SwitchableSettingsItem(
settingPictureSystemName: Icons.upvoteSquare,
settingName: "Show Score In Info",
Expand All @@ -134,6 +134,11 @@ struct PostSettingsView: View {
settingName: "Show Replies In Info",
isTicked: $shouldShowRepliesInPostBar
)
} header: {
Text("Interactions and Info")
} footer: {
// swiftlint:disable:next line_length
Text("Choose which information is shown when using Large or Headline mode. In Compact mode, all info stack widgets are shown.")
}

Section("Website Previews") {
Expand Down

0 comments on commit 2b2d4f4

Please sign in to comment.