Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/prefs.js

Issue 5364137328640000: Make sure to really save prefs when something changes (Closed)
Patch Set: Created Jan. 13, 2014, 11:53 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/prefs.js
===================================================================
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -81,16 +81,17 @@ function defineProperty(/**String*/ name
if (value == newValue)
return value;
try
{
ignorePrefChanges = true;
writeFunc(branch, name, newValue);
value = newValue;
+ Services.prefs.savePrefFile(null);
triggerListeners(name);
}
catch(e)
{
Cu.reportError(e);
}
finally
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld