feat: custom enable search suggestion

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-20 11:15:58 +08:00
parent 5c6be9cdcd
commit 34eb1def44
3 changed files with 18 additions and 2 deletions

View File

@@ -348,6 +348,9 @@ class GStorage {
static bool get mainTabBarView =>
GStorage.setting.get(SettingBoxKey.mainTabBarView, defaultValue: false);
static bool get searchSuggestion =>
GStorage.setting.get(SettingBoxKey.searchSuggestion, defaultValue: true);
static List<double> get dynamicDetailRatio => List<double>.from(setting
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -573,6 +576,7 @@ class SettingBoxKey {
superResolutionType = 'superResolutionType',
preInitPlayer = 'preInitPlayer',
mainTabBarView = 'mainTabBarView',
searchSuggestion = 'searchSuggestion',
// Sponsor Block
enableSponsorBlock = 'enableSponsorBlock',