1
0

Automate backups:

- backup wallet file on each channel creation
 - on android, a backup password is entered in settings
 - on desktop, the backup path is in settings
This commit is contained in:
ThomasV
2020-02-13 13:43:10 +01:00
parent cee8607218
commit 2dad87cbb4
7 changed files with 64 additions and 25 deletions

View File

@@ -442,7 +442,7 @@ def android_data_dir():
return PythonActivity.mActivity.getFilesDir().getPath() + '/data'
def get_backup_dir(config):
return android_backup_dir() if 'ANDROID_DATA' in os.environ else config.path
return android_backup_dir() if 'ANDROID_DATA' in os.environ else config.get('backup_dir')
def ensure_sparse_file(filename):