Nested Flag Settings Auto Disable

A child toggle gated by a parent condition must key its auto-disable effect on the parent's current value, grey out rather than hide when the gate is closed, and be gated again at the consumer — otherwise the child sticks ON with no way for the user to clear it. Use when a settings switch is stuck on, is greyed out while reading enabled, or keeps acting after its precondition is gone.

maxrave-dev 4b3ca6d 7.6 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/nested-flag-settings-auto-disable commit 4b3ca6debf

Frequently asked questions

npx skillmds@latest add maxrave-dev/nested-flag-settings-auto-disable