mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
ui / prefs fixes
This commit is contained in:
parent
b957c13f7d
commit
af405adc38
@ -129,7 +129,11 @@ WeaveSyncService.prototype = {
|
||||
set username(value) {
|
||||
let branch = Cc["@mozilla.org/preferences-service;1"]
|
||||
.getService(Ci.nsIPrefBranch);
|
||||
branch.setCharPref("browser.places.sync.username", value);
|
||||
if (value)
|
||||
branch.setCharPref("browser.places.sync.username", value);
|
||||
else
|
||||
branch.clearUserPref("browser.places.sync.username");
|
||||
|
||||
// fixme - need to loop over all Identity objects - needs some rethinking...
|
||||
this._mozId.username = value;
|
||||
this._cryptoId.username = value;
|
||||
|
Loading…
Reference in New Issue
Block a user