Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-12 17:05:52 +08:00
parent e4a960ecf9
commit 931fcb6f8f
18 changed files with 150 additions and 78 deletions

View File

@@ -1,4 +1,7 @@
import 'package:PiliPlus/models/common/later_view_type.dart';
import 'package:PiliPlus/utils/storage.dart';
import 'package:PiliPlus/utils/storage_key.dart';
import 'package:PiliPlus/utils/storage_pref.dart';
import 'package:get/get.dart';
class LaterBaseController extends GetxController {
@@ -9,5 +12,12 @@ class LaterBaseController extends GetxController {
for (final item in LaterViewType.values) item: -1,
}.obs;
late final RxBool isPlayAll = true.obs;
late double dx = 0;
late final RxBool isPlayAll = Pref.enablePlayAll.obs;
void setIsPlayAll(bool isPlayAll) {
if (this.isPlayAll.value == isPlayAll) return;
this.isPlayAll.value = isPlayAll;
GStorage.setting.put(SettingBoxKey.enablePlayAll, isPlayAll);
}
}