fix: disable the quality choice while visuals are unavailable

This commit is contained in:
2026-10-11 01:22:52 +03:00
parent 1bccb7548f
commit 863a44e65b
2 changed files with 26 additions and 1 deletions

View File

@@ -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(() => {
<label for="drive-quality">QUALITY</label>
<select
id="drive-quality"
:value="maximumQuality"
:value="visualsUnavailable ? 'static' : maximumQuality"
:disabled="visualsUnavailable"
aria-label="Quality control"
@change="changeQuality"
>