mod: 默认长按倍速调整为3.0,预设倍速中的0.25替换为3.0

This commit is contained in:
orz12
2024-03-06 16:32:20 +08:00
parent 02148f641f
commit 1ea95a3079
3 changed files with 9 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ class _PlaySpeedPageState extends State<PlaySpeedPage> {
videoStorage.get(VideoBoxKey.playSpeedDefault, defaultValue: 1.0);
// 默认长按倍速
longPressSpeedDefault =
videoStorage.get(VideoBoxKey.longPressSpeedDefault, defaultValue: 2.0);
videoStorage.get(VideoBoxKey.longPressSpeedDefault, defaultValue: 3.0);
// 自定义倍速
customSpeedsList =
videoStorage.get(VideoBoxKey.customSpeedsList, defaultValue: []);
@@ -187,7 +187,7 @@ class _PlaySpeedPageState extends State<PlaySpeedPage> {
videoStorage.put(VideoBoxKey.playSpeedDefault, playSpeedDefault);
}
if (customSpeedsList[index] == longPressSpeedDefault) {
longPressSpeedDefault = 2.0;
longPressSpeedDefault = 3.0;
videoStorage.put(
VideoBoxKey.longPressSpeedDefault, longPressSpeedDefault);
}