fix: rcmd list

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-19 10:34:52 +08:00
parent 60b6a1296e
commit 43dc130e4b
2 changed files with 5 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ class RcmdController extends PopupController {
@override @override
List? handleListResponse(List currentList, List dataList) { List? handleListResponse(List currentList, List dataList) {
return currentPage == 1 && enableSaveLastData return currentPage == 0 && enableSaveLastData && currentList.length < 500
? dataList + ? dataList +
(currentList.isEmpty ? <RecVideoItemAppModel>[] : currentList) (currentList.isEmpty ? <RecVideoItemAppModel>[] : currentList)
: null; : null;

View File

@@ -45,3 +45,7 @@ extension ListExt<T> on List<T>? {
extension StringExt on String { extension StringExt on String {
String get http2https => replaceFirst(RegExp("^http://"), "https://"); String get http2https => replaceFirst(RegExp("^http://"), "https://");
} }
extension boolExt on bool {
bool get not => !this;
}