Thorsten Hempel
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
electrum/gui/kivy/main_window.py
|
|
@ -1335,7 +1335,6 @@ class ElectrumWindow(App, Logger): |
|
|
|
self.show_error(_("Backup NOT saved. Backup directory not configured.")) |
|
|
|
return |
|
|
|
|
|
|
|
backup_dir = util.android_backup_dir() |
|
|
|
from android.permissions import request_permissions, Permission |
|
|
|
def cb(permissions, grant_results: Sequence[bool]): |
|
|
|
if not grant_results or not grant_results[0]: |
|
|
@ -1343,6 +1342,7 @@ class ElectrumWindow(App, Logger): |
|
|
|
return |
|
|
|
# note: Clock.schedule_once is a hack so that we get called on a non-daemon thread |
|
|
|
# (needed for WalletDB.write) |
|
|
|
backup_dir = util.android_backup_dir() |
|
|
|
Clock.schedule_once(lambda dt: self._save_backup(backup_dir)) |
|
|
|
request_permissions([Permission.WRITE_EXTERNAL_STORAGE], cb) |
|
|
|
|
|
|
|