mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
feat: tempPlayerConf add playRepeat (#1830)
This commit is contained in:
committed by
GitHub
parent
7e570d11d8
commit
0460030a2b
@@ -89,10 +89,9 @@ List<SettingsModel> get extraSettings => [
|
||||
leading: const Icon(MdiIcons.debugStepOver),
|
||||
value: () => Pref.pgcSkipType,
|
||||
items: SkipType.values,
|
||||
onSelected: (value, setState) async {
|
||||
await GStorage.setting.put(SettingBoxKey.pgcSkipType, value.index);
|
||||
setState();
|
||||
},
|
||||
onSelected: (value, setState) => GStorage.setting
|
||||
.put(SettingBoxKey.pgcSkipType, value.index)
|
||||
.whenComplete(setState),
|
||||
),
|
||||
SwitchModel(
|
||||
title: '检查未读动态',
|
||||
|
||||
@@ -8,6 +8,7 @@ import 'package:PiliPlus/pages/setting/models/model.dart';
|
||||
import 'package:PiliPlus/pages/setting/widgets/select_dialog.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/models/bottom_progress_behavior.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/models/fullscreen_mode.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/models/play_repeat.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/utils/fullscreen.dart'
|
||||
show allowRotateScreen;
|
||||
import 'package:PiliPlus/services/service_locator.dart';
|
||||
@@ -252,6 +253,15 @@ List<SettingsModel> get playSettings => [
|
||||
onChanged: (value) =>
|
||||
videoPlayerServiceHandler!.enableBackgroundPlay = value,
|
||||
),
|
||||
PopupModel(
|
||||
title: '播放顺序',
|
||||
leading: const Icon(Icons.repeat),
|
||||
value: () => Pref.playRepeat,
|
||||
items: PlayRepeat.values,
|
||||
onSelected: (value, setState) => GStorage.video
|
||||
.put(VideoBoxKey.playRepeat, value.index)
|
||||
.whenComplete(setState),
|
||||
),
|
||||
const SwitchModel(
|
||||
title: '播放器设置仅对当前生效',
|
||||
subtitle: '弹幕、字幕及部分设置中没有的设置除外',
|
||||
|
||||
Reference in New Issue
Block a user