提交 95fb0137 编写于 作者: G Gen Lu

Fix logging for option value change

上级 fff2eec9
......@@ -109,8 +109,11 @@ public override void SaveSettingsToStorage()
// Save the changes that were accumulated in the option store.
var oldOptions = s_optionService.GetOptions();
var newOptions = s_optionStore.GetOptions();
s_optionService.SetOptions(newOptions);
// Must log the option change before setting the new option values via s_optionService,
// otherwise oldOptions and newOptions would be identical and nothing will be logged.
OptionLogger.Log(oldOptions, newOptions);
s_optionService.SetOptions(newOptions);
// Make sure we load the next time a page is activated, in case that options changed
// programmatically between now and the next time the page is activated
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册