feat: sync segment type with upstream (#1777)

* feat: sync segment type with upstream

* update

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Signed-off-by: Vixb <xzx8023@outlook.com>
Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
Vixb
2025-12-14 13:48:00 +08:00
committed by GitHub
parent 02bd68f697
commit cef4beaa0c
2 changed files with 38 additions and 28 deletions

View File

@@ -114,8 +114,11 @@ abstract class Pref {
}
return SegmentType.values
.map(
(item) =>
Pair(first: item, second: SkipType.values[list[item.index]]),
(item) => Pair(
first: item,
second: SkipType
.values[list.getOrNull(item.index) ?? SkipType.skipOnce.index],
),
)
.toList();
}