mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt onChangeAccount
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -42,16 +42,20 @@ class PgcController
|
||||
@override
|
||||
Future<void> onRefresh() {
|
||||
if (accountService.isLogin.value) {
|
||||
followPage = 1;
|
||||
followEnd = false;
|
||||
_refreshPgcFollow();
|
||||
}
|
||||
queryPgcFollow();
|
||||
if (showPgcTimeline) {
|
||||
queryPgcTimeline();
|
||||
}
|
||||
return super.onRefresh();
|
||||
}
|
||||
|
||||
void _refreshPgcFollow() {
|
||||
followPage = 1;
|
||||
followEnd = false;
|
||||
queryPgcFollow();
|
||||
}
|
||||
|
||||
// follow
|
||||
late int followPage = 1;
|
||||
late RxInt followCount = (-1).obs;
|
||||
@@ -147,9 +151,7 @@ class PgcController
|
||||
@override
|
||||
void onChangeAccount(bool isLogin) {
|
||||
if (isLogin) {
|
||||
followPage = 1;
|
||||
followEnd = false;
|
||||
queryPgcFollow();
|
||||
_refreshPgcFollow();
|
||||
} else {
|
||||
followState.value = LoadingState.loading();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user