From 3956958452e7743f34c0232b9ed4615d7f336ee0 Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Sat, 10 May 2025 12:54:58 -0700 Subject: [PATCH] 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 Co-authored-by: Frank Noirot --- src/lib/settings/initialSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/settings/initialSettings.tsx b/src/lib/settings/initialSettings.tsx index ae923bf96..b057c761d 100644 --- a/src/lib/settings/initialSettings.tsx +++ b/src/lib/settings/initialSettings.tsx @@ -211,8 +211,9 @@ export function createSettings() { * Stream resource saving behavior toggle */ streamIdleMode: new Setting({ - defaultValue: undefined, + defaultValue: 5 * MS_IN_MINUTE, hideOnLevel: 'project', + hideOnPlatform: 'both', description: 'Save bandwidth & battery', validate: (v) => String(v) == 'undefined' ||