Add changelog

This commit is contained in:
shilangyu 2021-04-17 12:22:15 +02:00
parent fa7effcb4b
commit 12cb62f87a
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,12 @@
## Unreleased
### Added
- Show avatars setting toggle
- Show scores setting toggle
- Default listing type for the home tab setting
- Import Lemmy settings: long press an account in account settings then choose the import option
## v0.4.2 - 2021-04-12 ## v0.4.2 - 2021-04-12
### Changed ### Changed

View File

@ -73,6 +73,7 @@ class ConfigStore extends ChangeNotifier {
} }
late SortType _defaultSortType; late SortType _defaultSortType;
// default is set in fromJson
@JsonKey(fromJson: _sortTypeFromJson) @JsonKey(fromJson: _sortTypeFromJson)
SortType get defaultSortType => _defaultSortType; SortType get defaultSortType => _defaultSortType;
set defaultSortType(SortType defaultSortType) { set defaultSortType(SortType defaultSortType) {
@ -82,6 +83,7 @@ class ConfigStore extends ChangeNotifier {
} }
late PostListingType _defaultListingType; late PostListingType _defaultListingType;
// default is set in fromJson
@JsonKey(fromJson: _postListingTypeFromJson) @JsonKey(fromJson: _postListingTypeFromJson)
PostListingType get defaultListingType => _defaultListingType; PostListingType get defaultListingType => _defaultListingType;
set defaultListingType(PostListingType defaultListingType) { set defaultListingType(PostListingType defaultListingType) {