Make idle sestting 30sec in nightly (#6972)
This commit is contained in:
@ -24,6 +24,7 @@ import { Themes } from '@src/lib/theme'
|
|||||||
import { reportRejection } from '@src/lib/trap'
|
import { reportRejection } from '@src/lib/trap'
|
||||||
import { isEnumMember } from '@src/lib/types'
|
import { isEnumMember } from '@src/lib/types'
|
||||||
import { capitaliseFC, isArray, toSync } from '@src/lib/utils'
|
import { capitaliseFC, isArray, toSync } from '@src/lib/utils'
|
||||||
|
import { IS_NIGHTLY_OR_DEBUG } from '@src/routes/utils'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A setting that can be set at the user or project level
|
* A setting that can be set at the user or project level
|
||||||
@ -211,7 +212,7 @@ export function createSettings() {
|
|||||||
* Stream resource saving behavior toggle
|
* Stream resource saving behavior toggle
|
||||||
*/
|
*/
|
||||||
streamIdleMode: new Setting<number | undefined>({
|
streamIdleMode: new Setting<number | undefined>({
|
||||||
defaultValue: 5 * MS_IN_MINUTE,
|
defaultValue: IS_NIGHTLY_OR_DEBUG ? 30 * 1000 : 5 * MS_IN_MINUTE,
|
||||||
hideOnLevel: 'project',
|
hideOnLevel: 'project',
|
||||||
hideOnPlatform: 'both',
|
hideOnPlatform: 'both',
|
||||||
description: 'Save bandwidth & battery',
|
description: 'Save bandwidth & battery',
|
||||||
|
|||||||
Reference in New Issue
Block a user