Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@
"settings_enableTrueBlack": "Enable true black",
"settings_enableTrueBlack_help": "Might save power on AMOLED displays",
"settings_compactMode": "Compact mode",
"settings_splitVotes": "Show separate upvotes/downvote values",
"settings_splitVotes_help": "Show separate values for upvotes and downvotes, otherwise show the sum of the votes.",
"settings_hideActionButtons": "Hide action buttons",
"settings_hideActionButtons_help": "Hides the action buttons (vote, boost, reply, etc.) below each post and comment. The controls are still accessible in the overflow menu. It is recommended to enable swipe gestures in unison with this setting.",
"settings_hideFeedUIOnScroll": "Hide feed UI on scroll",
Expand Down
6 changes: 5 additions & 1 deletion lib/src/controller/database/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class Profiles extends Table {
TextColumn get colorScheme => textEnum<FlexScheme>().nullable()();
BoolColumn get enableTrueBlack => boolean().nullable()();
TextColumn get postMode => textEnum<PostMode>().nullable()();
BoolColumn get splitVotes => boolean().nullable()();
BoolColumn get hideActionButtons => boolean().nullable()();
BoolColumn get hideFeedUIOnScroll => boolean().nullable()();
RealColumn get globalTextScale => real().nullable()();
Expand Down Expand Up @@ -463,7 +464,7 @@ class InterstellarDatabase extends _$InterstellarDatabase {
: super(executor ?? _openConnection());

@override
int get schemaVersion => 3;
int get schemaVersion => 4;

@override
MigrationStrategy get migration {
Expand Down Expand Up @@ -509,6 +510,9 @@ class InterstellarDatabase extends _$InterstellarDatabase {
schema.miscCache.unifiedpushDistributorAck,
);
},
from3To4: (m, schema) async {
m.addColumn(schema.profiles, schema.profiles.splitVotes);
},
),
);
}
Expand Down
Loading
Loading