fix: read Static and disable quality when a system setting withholds the scene
This commit is contained in:
@@ -94,12 +94,16 @@ 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. */
|
||||
/** The scene was lost, never started, or is withheld by a system setting
|
||||
* (reduced motion, data saver): the quality choice has nothing to act on, so
|
||||
* it reads Static and is disabled rather than claiming High. Visitor choices
|
||||
* (pause, saved Static) keep it enabled so they can be changed back. */
|
||||
const visualsUnavailable = computed(
|
||||
() =>
|
||||
props.policy.reason === "full" &&
|
||||
(props.sceneStatus === "failed" || props.sceneStatus === "static"),
|
||||
props.policy.reason === "system-reduce" ||
|
||||
props.policy.reason === "data-saver" ||
|
||||
(props.policy.reason === "full" &&
|
||||
(props.sceneStatus === "failed" || props.sceneStatus === "static")),
|
||||
);
|
||||
|
||||
const runAction = (): void => {
|
||||
|
||||
Reference in New Issue
Block a user