From 863a44e65bf143aa73ed89decb5c7baabd48d421 Mon Sep 17 00:00:00 2001 From: LucaP Date: Sun, 11 Oct 2026 01:22:52 +0300 Subject: [PATCH] fix: disable the quality choice while visuals are unavailable --- src/components/DriveControls.vue | 11 ++++++++++- tests/unit/SceneCanvas.test.ts | 16 ++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/components/DriveControls.vue b/src/components/DriveControls.vue index 7e58466..6e12aae 100644 --- a/src/components/DriveControls.vue +++ b/src/components/DriveControls.vue @@ -94,6 +94,14 @@ const statusText = computed(() => { return null; }); +/** The scene was lost or never started: the quality choice has nothing to + * act on, so it reads Static and is disabled rather than claiming High. */ +const visualsUnavailable = computed( + () => + props.policy.reason === "full" && + (props.sceneStatus === "failed" || props.sceneStatus === "static"), +); + const runAction = (): void => { const event = action.value?.event; if (event === "pause") emit("pause"); @@ -334,7 +342,8 @@ onBeforeUnmount(() => {