mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: retry before sending (#489)
* feat: retry before sending * reduce idleTimeout
This commit is contained in:
committed by
GitHub
parent
99b14d0f0e
commit
3881b3dc74
@@ -422,6 +422,12 @@ class GStorage {
|
||||
static bool get enableSlideVolumeBrightness => GStorage.setting
|
||||
.get(SettingBoxKey.enableSlideVolumeBrightness, defaultValue: true);
|
||||
|
||||
static int get retryCount =>
|
||||
GStorage.setting.get(SettingBoxKey.retryCount, defaultValue: 0);
|
||||
|
||||
static int get retryDelay =>
|
||||
GStorage.setting.get(SettingBoxKey.retryDelay, defaultValue: 500);
|
||||
|
||||
static List<double> get dynamicDetailRatio => List<double>.from(setting
|
||||
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
|
||||
|
||||
@@ -691,6 +697,8 @@ class SettingBoxKey {
|
||||
showDynActionBar = 'showDynActionBar',
|
||||
darkVideoPage = 'darkVideoPage',
|
||||
enableSlideVolumeBrightness = 'enableSlideVolumeBrightness',
|
||||
retryCount = 'retryCount',
|
||||
retryDelay = 'retryDelay',
|
||||
|
||||
// Sponsor Block
|
||||
enableSponsorBlock = 'enableSponsorBlock',
|
||||
|
||||
Reference in New Issue
Block a user