mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
disable search default by def
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -24,7 +24,7 @@ class HomeController extends GetxController
|
||||
final bool useSideBar = Pref.useSideBar;
|
||||
|
||||
bool enableSearchWord = Pref.enableSearchWord;
|
||||
late RxString defaultSearch = ''.obs;
|
||||
late final RxString defaultSearch = ''.obs;
|
||||
late int lateCheckSearchAt = 0;
|
||||
|
||||
ScrollOrRefreshMixin get controller => tabs[tabController.index].ctr();
|
||||
|
||||
@@ -774,7 +774,7 @@ List<SettingsModel> get extraSettings => [
|
||||
subtitle: '是否展示搜索框默认词',
|
||||
leading: const Icon(Icons.whatshot_outlined),
|
||||
setKey: SettingBoxKey.enableSearchWord,
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
onChanged: (val) {
|
||||
try {
|
||||
final controller = Get.find<HomeController>()..enableSearchWord = val;
|
||||
|
||||
@@ -628,7 +628,7 @@ abstract class Pref {
|
||||
_setting.get(SettingBoxKey.scrollThreshold, defaultValue: 50.0);
|
||||
|
||||
static bool get enableSearchWord =>
|
||||
_setting.get(SettingBoxKey.enableSearchWord, defaultValue: true);
|
||||
_setting.get(SettingBoxKey.enableSearchWord, defaultValue: false);
|
||||
|
||||
static bool get useSideBar =>
|
||||
_setting.get(SettingBoxKey.useSideBar, defaultValue: false);
|
||||
|
||||
Reference in New Issue
Block a user