open dir only once

This commit is contained in:
Matias Alejo Garcia 2015-04-27 12:35:26 -03:00
commit 20b7a851d3
2 changed files with 71 additions and 72 deletions

View file

@ -569,7 +569,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
$rootScope.$on('Local/BackupDone', function(event) {
self.needsBackup = false;
storageService.setBackupFlag(self.walletId, function() {});
storageService.setBackupFlag(self.walletId, function(err) {
if (err) $rootScope.$emit('Local/DeviceError', err)
});
});
$rootScope.$on('Local/NotAuthorized', function(event) {