feat: search suggestion switch

This commit is contained in:
guozhigq
2024-10-19 14:50:09 +08:00
parent 95df2fb6ab
commit e4679143c5
4 changed files with 24 additions and 9 deletions

View File

@ -47,6 +47,8 @@ class GlobalDataCache {
UserInfoData? userInfo;
// 搜索历史
late List historyCacheList;
//
late bool enableSearchSuggest = true;
// 私有构造函数
GlobalDataCache._();
@ -108,5 +110,7 @@ class GlobalDataCache {
userInfo = userInfoCache.get('userInfoCache');
sheetHeight = localCache.get('sheetHeight', defaultValue: 0.0);
historyCacheList = localCache.get('cacheList', defaultValue: []);
enableSearchSuggest =
setting.get(SettingBoxKey.enableSearchSuggest, defaultValue: true);
}
}