File tree 1 file changed +11
-2
lines changed
lib/widgets/bangumi/subject_detail
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,19 @@ class _BsdBmfRssState extends ConsumerState<BsdBmfRss>
120
120
121
121
/// showNewRss
122
122
Future <void > showNewRss (List <RssItem > newList) async {
123
- for ( var item in newList ) {
123
+ if (newList.length > 1 ) {
124
124
await BTNotifierTool .showMini (
125
125
title: 'RSS 订阅更新' ,
126
- body: '${item .title }' ,
126
+ body: bmf.title ?? '动画:${bmf .subject }' ,
127
+ onClick: () => ref
128
+ .read (navStoreProvider.notifier)
129
+ .addNavItemB (subject: bmf.subject, type: '动画' ),
130
+ );
131
+ }
132
+ if (newList.length == 1 ) {
133
+ await BTNotifierTool .showMini (
134
+ title: 'RSS 订阅更新' ,
135
+ body: '${newList [0 ].title }' ,
127
136
onClick: () => ref
128
137
.read (navStoreProvider.notifier)
129
138
.addNavItemB (subject: bmf.subject, type: '动画' ),
You can’t perform that action at this time.
0 commit comments