Force idle stream to 5min and hide setting (#6810)

* Hide "Allow orbit in sketch mode" setting from the app

The ability to orbit while in sketch mode is not well-tested or
well-used, so we should pull it from the app. The easiest way to do that
is leave the setting in the WASM definition, but configure the setting
to be uneditable from the interface.

* pierremtb/adhoc/force-idle-stream-and-hide

---------

Co-authored-by: Frank Noirot <frankjohnson1993@gmail.com>
Co-authored-by: Frank Noirot <frank@zoo.dev>
This commit is contained in:
Pierre Jacquier
2025-05-10 12:54:58 -07:00
committed by GitHub
parent 0fe866ad8b
commit 3956958452

View File

@ -211,8 +211,9 @@ export function createSettings() {
* Stream resource saving behavior toggle
*/
streamIdleMode: new Setting<number | undefined>({
defaultValue: undefined,
defaultValue: 5 * MS_IN_MINUTE,
hideOnLevel: 'project',
hideOnPlatform: 'both',
description: 'Save bandwidth & battery',
validate: (v) =>
String(v) == 'undefined' ||