mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: rcmd list
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user