Skip to content

Commit a0aedfb

Browse files
authored
show recent items only if recentItemsCount greater than zero (#705)
1 parent 3b67cb4 commit a0aedfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitchenowl/lib/widgets/shopping_list/sliver_shopinglist_item_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SliverShopinglistItemView extends StatelessWidget {
7979
return SliverMainAxisGroup(slivers: [
8080
if (main is List) ...main,
8181
if (main is! List) main,
82-
if ((shoppingList?.recentItems.isNotEmpty ?? false) || isLoading)
82+
if (((shoppingList?.recentItems.isNotEmpty ?? false) && (App.settings.recentItemsCount > 0)) || isLoading)
8383
SliverCategoryItemGridList<ItemWithDescription>(
8484
name: '${AppLocalizations.of(context)!.itemsRecent}:',
8585
items: shoppingList?.recentItems

0 commit comments

Comments
 (0)