Skip to content

Commit

Permalink
Fix issue #258 Rearranging subscriptions duplicates subscription list.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fbriere committed Apr 30, 2024
1 parent 188ea23 commit 1679db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/subscriptions/_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class SubscriptionUsersListState extends State<SubscriptionUsersList> {
Widget build(BuildContext context) {
BasePrefService prefs = PrefService.of(context);
String subscriptionOrderCustom = prefs.get(optionSubscriptionOrderCustom);
subLst.clear();
if (subscriptionOrderCustom.isNotEmpty) {
subLst.addAll(
subscriptionOrderCustom.split(',').map((sn) => widget.subscriptions.firstWhere((s) => s.screenName == sn)));
subLst.addAll(subscriptionOrderCustom.split(',').map((sn) => widget.subscriptions.firstWhere((s) => s.screenName == sn)));
} else {
subLst.addAll(widget.subscriptions);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 3.8.1+44
version: 3.8.2+45

environment:
sdk: ">=2.18.0 <3.0.0"
Expand Down

0 comments on commit 1679db4

Please sign in to comment.