opt: pgc timeline

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-13 21:08:22 +08:00
parent 68df173558
commit 6ac482ed5e
4 changed files with 43 additions and 7 deletions

View File

@@ -16,6 +16,8 @@ class BangumiController extends CommonListController<
RxBool isLogin = false.obs;
int? mid;
late final showPgcTimeline =
tabType == TabType.bangumi && GStorage.showPgcTimeline;
@override
void onInit() {
@@ -25,7 +27,7 @@ class BangumiController extends CommonListController<
queryData();
queryBangumiFollow();
if (tabType == TabType.bangumi) {
if (showPgcTimeline) {
queryPgcTimeline();
}
if (isLogin.value) {
@@ -40,7 +42,7 @@ class BangumiController extends CommonListController<
followEnd = false;
}
queryBangumiFollow();
if (tabType == TabType.bangumi) {
if (showPgcTimeline) {
queryPgcTimeline();
}
return super.onRefresh();