summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2013-07-17 11:30:09 -0400
committerNat Goodspeed <nat@lindenlab.com>2013-07-17 11:30:09 -0400
commitfd14c250b8aa7b2d512194b164646ff7f658bef3 (patch)
tree7e022b9a33182a35b4848a5237d9c3b1916e4b00 /etc
parent2b3c1bd40d11b02cb097cb3dba7a661a4b528a91 (diff)
CHOP-962: Preserve unrecognized user settings variables.
Change LLControlVariable::mPersist from bool to tri-state enum. Its 'true' value used to mean "persist only if changed from default;" third state now means "persist regardless of value." Add forcePersist() method to set that. Replace isSaveValueDefault() method -- used only by logic to determine whether to save the variable -- with shouldSave() method to encapsulate ALL that logic rather than only part of it. shouldSave() recognizes PERSIST_ALWAYS state. When loading an unrecognized control variable from a user settings file, use forcePersist() to ensure that we later save that variable again. Tweak one of the unit tests to adjust for new semantics.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions