Expand description
Value scopes: where a setting’s value is set. app is this person on
this machine (the settings store, as today) and the only scope a
setting has unless it opts into more; the host application declares
its own scopes above app (a project, a library, a workspace…),
each later one winning over the earlier ones; run is the command
line’s overrides, above them all, shown, never edited.
The store keeps the effective value at settings/<id>, so every
reader (AppHandle::setting, bindings, listeners) sees it unchanged;
Layers keeps the layers above app, and the app value of a path
while a layer above holds it. Saving the user’s settings takes the
app values back (Layers::app_doc), so a scope’s value never
leaks into the user’s file.
Each change returns the effective value to write when it changes: the caller writes it (the model stays free of the store’s locks).
Structs§
- Layers
- The layers above
app, by path. - Value
Scope - A layer of values, by name:
appandrunare egui-pop’s, the others the host application’s (ValueScope::new).