mod: add nav/search debounce option

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-04 21:52:28 +08:00
parent f1433c6e9b
commit 1c0bae600f
5 changed files with 26 additions and 4 deletions

View File

@@ -445,6 +445,9 @@ class GStorage {
static bool get recordSearchHistory => GStorage.setting
.get(SettingBoxKey.recordSearchHistory, defaultValue: true);
static bool get navSearchStreamDebounce => GStorage.setting
.get(SettingBoxKey.navSearchStreamDebounce, defaultValue: false);
static List<double> get dynamicDetailRatio => List<double>.from(setting
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -728,6 +731,7 @@ class SettingBoxKey {
enableDragSubtitle = 'enableDragSubtitle',
fastForBackwardDuration = 'fastForBackwardDuration',
recordSearchHistory = 'recordSearchHistory',
navSearchStreamDebounce = 'navSearchStreamDebounce',
// Sponsor Block
enableSponsorBlock = 'enableSponsorBlock',