fix: block settings import #7

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-25 10:16:19 +08:00
parent 0ebe4e9a80
commit 36aa12025e
5 changed files with 14 additions and 66 deletions

View File

@@ -24,7 +24,7 @@ class GStorage {
static late final Box<dynamic> video;
static List<Pair<SegmentType, SkipType>> get blockSettings {
List<int> list = setting.get(
List list = setting.get(
SettingBoxKey.blockSettings,
defaultValue: List.generate(SegmentType.values.length, (_) => 1),
);
@@ -37,7 +37,7 @@ class GStorage {
}
static List<Color> get blockColor {
List<String> list = setting.get(
List list = setting.get(
SettingBoxKey.blockColor,
defaultValue: List.generate(SegmentType.values.length, (_) => ''),
);