Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kodjodevf committed Dec 5, 2023
1 parent 0c9de22 commit a4663ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion lib/models/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ class Settings {
this.backupFrequencyOptions,
this.autoBackupLocation,
this.startDatebackup,
this.usePageTapZones = true});
this.usePageTapZones = true,
this.autoScrollPages});

Settings.fromJson(Map<String, dynamic> json) {
animatePageTransitions = json['animatePageTransitions'];
Expand Down Expand Up @@ -309,6 +310,11 @@ class Settings {
sortLibraryManga = json['sortLibraryManga'] != null
? SortLibraryManga.fromJson(json['sortLibraryManga'])
: null;
if (json['sortChapterList'] != null) {
autoScrollPages = (json['autoScrollPages'] as List)
.map((e) => AutoScrollPages.fromJson(e))
.toList();
}
themeIsDark = json['themeIsDark'];
userAgent = json['userAgent'];
backupFrequency = json['backupFrequency'];
Expand Down Expand Up @@ -390,6 +396,8 @@ class Settings {
'showPagesNumber': showPagesNumber,
if (sortChapterList != null)
'sortChapterList': sortChapterList!.map((v) => v.toJson()).toList(),
if (sortChapterList != null)
'autoScrollPages': autoScrollPages!.map((v) => v.toJson()).toList(),
'sortLibraryAnime': sortLibraryAnime,
if (sortLibraryManga != null)
'sortLibraryManga': sortLibraryManga!.toJson(),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: mangayomi
description: Free and open source manga reader and anime streaming cross-plateform app inspired by Tachiyomi.
publish_to: 'none'
version: 0.1.1+33
version: 0.1.2+34

environment:
sdk: '>=3.2.0 <4.0.0'
Expand Down

0 comments on commit a4663ba

Please sign in to comment.