mod: add check update

Closes #112

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-08 11:28:28 +08:00
parent 57722eb579
commit 28b6b769b2
6 changed files with 143 additions and 118 deletions

View File

@@ -301,6 +301,9 @@ class GStorage {
static bool get cdnSpeedTest =>
setting.get(SettingBoxKey.cdnSpeedTest, defaultValue: true);
static bool get autoUpdate =>
GStorage.setting.get(SettingBoxKey.autoUpdate, defaultValue: true);
static List<double> get dynamicDetailRatio => List<double>.from(setting
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -475,7 +478,7 @@ class SettingBoxKey {
applyFilterToRelatedVideos = 'applyFilterToRelatedVideos',
/// 其他
// autoUpdate = 'autoUpdate',
autoUpdate = 'autoUpdate',
autoClearCache = 'autoClearCache',
defaultShowComment = 'defaultShowComment',
replySortType = 'replySortType',