mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: add nav/search debounce option
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -421,6 +421,19 @@ List<SettingsModel> get styleSettings => [
|
||||
defaultVal: true,
|
||||
needReboot: true,
|
||||
),
|
||||
SettingsModel(
|
||||
settingsType: SettingsType.sw1tch,
|
||||
title: '降低收起/展开顶/底栏频率',
|
||||
leading: const Icon(Icons.vertical_distribute),
|
||||
setKey: SettingBoxKey.navSearchStreamDebounce,
|
||||
defaultVal: false,
|
||||
onChanged: (value) {
|
||||
try {
|
||||
Get.find<MainController>().navSearchStreamDebounce = value;
|
||||
Get.forceAppUpdate();
|
||||
} catch (_) {}
|
||||
},
|
||||
),
|
||||
SettingsModel(
|
||||
settingsType: SettingsType.normal,
|
||||
onTap: (setState) {
|
||||
|
||||
Reference in New Issue
Block a user