1
0

Change warning shown on first channel creation

Qt: if created channel is not recoverable, show channel backup after creation
This commit is contained in:
ThomasV
2021-03-23 17:25:27 +01:00
parent f2aa52e5aa
commit 18d7db12da
8 changed files with 63 additions and 48 deletions

View File

@@ -266,6 +266,14 @@ class SimpleConfig(Logger):
if os.path.exists(self.path): # or maybe not?
raise
def get_backup_dir(self):
# this is used to save a backup everytime a channel is created
# on Android, the export backup button uses android_backup_dir()
if 'ANDROID_DATA' in os.environ:
return None
else:
return self.get('backup_dir')
def get_wallet_path(self, *, use_gui_last_wallet=False):
"""Set the path of the wallet."""