mark default language in options

This commit is contained in:
Gabriel Bazán 2015-12-21 11:31:40 -03:00
commit 006c46c91a
2 changed files with 20 additions and 12 deletions

View file

@ -85,7 +85,7 @@ angular.module('copayApp.services')
});
};
root.update = function() {
root.update = function(cb) {
var userLang = configService.getSync().wallet.settings.defaultLanguage;
if (!userLang) {
@ -96,8 +96,13 @@ angular.module('copayApp.services')
if (userLang != root.currentLanguage) {
root._set(lang);
}
return userLang;
return cb(userLang);
});
} else {
if (userLang != root.currentLanguage) {
root._set(userLang);
}
return cb(userLang);
}
};