Added needBackup flag when importing a wallet

This commit is contained in:
Matias Pando 2014-11-26 17:16:46 -03:00
commit 36822dce49
2 changed files with 71 additions and 54 deletions

View file

@ -278,6 +278,13 @@ Identity.prototype.exportEncryptedWithWalletInfo = function(opts) {
return crypto.encrypt(this.password, this.exportWithWalletInfo(opts));
};
Identity.prototype.setBackupNeeded = function() {
this.backupNeeded = true;
this.store({
noWallets: true
}, function() {});
}
Identity.prototype.setBackupDone = function() {
this.backupNeeded = false;
this.store({