Added needBackup flag when importing a wallet
This commit is contained in:
parent
52fb680658
commit
36822dce49
2 changed files with 71 additions and 54 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue