YouTube Chat layer: one-per-layout gate + legacy label heal (TASK 27)
This commit is contained in:
@@ -318,6 +318,11 @@ This replaces the old five-seeder cluster (`Seed{Starting,Brb,Ending,Chat}Backgr
|
||||
TASK 26; the old per-staged-scene gate let a second picker run from a scene that lacked the config).
|
||||
**Removing the last webcam config anywhere clears the identity** (`_webcam = null`, raising
|
||||
`CanAddWebcam`/`CanChangeWebcam`), which also drops "Change Webcam…" and re-enables Add.
|
||||
The **YouTube Chat layer follows the same one-per-layout rule** (TASK 27):
|
||||
`CanAddYouTubeChat` greys out the (+) item while any scene carries a ChatBox source (raised on
|
||||
staging + elements change; `AddSource` refuses a second as defense in depth). Chat layers created
|
||||
before the "YouTube Chat" default still carried the legacy name "Chat" (commit `65641d8` era) —
|
||||
LoadLayout heals exactly that un-renamed default to "YouTube Chat"; creator renames are untouched.
|
||||
- **Round→rect restores the aspect (persisted, schema v4):** `SceneElement.ToggleClipShape()`
|
||||
snapshots the rectangular Width/Height into public `RectWidth`/`RectHeight` before going Round and
|
||||
restores them when switching back — otherwise the Round resize lock (square) would leave a square
|
||||
|
||||
Reference in New Issue
Block a user