diff --git a/packages/gui-extensions/src/debug/renderer.tsx b/packages/gui-extensions/src/debug/renderer.tsx index 75d45781229..3ab43c7e863 100644 --- a/packages/gui-extensions/src/debug/renderer.tsx +++ b/packages/gui-extensions/src/debug/renderer.tsx @@ -19,7 +19,8 @@ const setup: Setup = (ctx) => { setMotion((value) => !value) } - const developer = channel !== "prod" + // Motion tuning is a dev-server tool: no built app (dev, beta or prod channel) ships its button or panel. + const motionTools = import.meta.env.DEV ctx.add( Command, @@ -31,7 +32,7 @@ const setup: Setup = (ctx) => { }), ) - if (developer) + if (motionTools) ctx.add( Command, (): Command => ({ @@ -50,12 +51,12 @@ const setup: Setup = (ctx) => { - + @@ -64,7 +65,7 @@ const setup: Setup = (ctx) => { ), }) - if (!developer) return + if (channel !== "dev" && channel !== "local") return ctx.add( TitlebarItem, (): TitlebarItem => ({