km_kbp_state_options_update should set the persisted cache copy as well.

This commit is contained in:
Tim Eves 2018-12-19 12:35:08 +07:00
parent da815eb92e
commit 2f2254ddca
2 changed files with 2 additions and 0 deletions

View file

@ -56,6 +56,7 @@ namespace km {
switch(scope) {
case KM_KBP_OPT_KEYBOARD:
_kmx.GetOptions()->Set(key, value);
persisted_store()[key] = value;
break;
case KM_KBP_OPT_ENVIRONMENT:
_kmx.GetEnvironment()->Load(key, value);

View file

@ -99,6 +99,7 @@ namespace km {
if (i == _options.end()) return option();
i->second = value;
persisted_store()[key] = value;
return option(scope, key, i->second);
}